Skip to content
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
22 lines (19 sloc) 693 Bytes
# Modeled from:
# build stage
FROM node:lts-alpine as build-stage
COPY package*.json ./
RUN npm install
COPY . .
RUN npm run init:app && npm run build
# production stage
FROM nginx:stable-alpine as production-stage
LABEL maintainer="Just van den Broecke <>"
COPY --from=build-stage /app/dist /usr/share/nginx/html
CMD ["nginx", "-g", "daemon off;"]
# now run with e.g.
# docker run -it -p 8080:80 meggsimum/wegue:latest
# Or map your own application config file:
# docker run -it -p 8080:80 -v $(pwd)/app-conf-mine.json:/usr/share/nginx/html/static/app-conf.json meggsimum/wegue:latest
You can’t perform that action at this time.