Skip to content
Snippets Groups Projects
Dockerfile 293 B
# First stage builds the frontend
FROM node:12-alpine as build

WORKDIR /src
COPY . /src
RUN npm install --no-progress
RUN npm run production

# Second stage just expose the built file
FROM nginx:alpine

EXPOSE 80

COPY --from=build /src/dist /usr/share/nginx/html

CMD nginx -g 'daemon off;'