alpine with tiny image size.FROM faasjs/node AS builder
WORKDIR /app
COPY package.json package.json
COPY package-lock.json package-lock.json
RUN npm install
COPY . .
RUN npm run build
FROM faasjs/nginx
COPY --from=builder /app/dist /usr/share/nginx/html
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]
Content type
Image
Digest
sha256:e27f1b004…
Size
4.9 MB
Last updated
about 1 month ago
docker pull faasjs/nginx