Commit 5da73ab8 authored by Hidde-Jan Jongsma's avatar Hidde-Jan Jongsma

Add production docker file

parent 6937fd65
.git
.gitignore
dist
node_modules
Dockerfile
Dockerfile*
docker-compose*.yml
.dockerignore
FROM node:10
RUN mkdir -p /app/node_modules && chown -R node:node /app
USER node
# Create Directory for the Container
WORKDIR /app
# Only copy the package.json and yarn.lock to work directory
COPY --chown=node:node package.json package-lock.json ./
# Install all Packages
RUN npm install
# Copy all other source code to work directory
COPY --chown=node:node . ./
RUN npm run build
CMD [ "npm", "run", "start:prod" ]
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment