Skip to content
Switch branches/tags
Go to file
Cannot retrieve contributors at this time
# Setup and build the client
FROM node:9.0.0 as client
WORKDIR /usr/app/client/
COPY client/package.json ./
RUN npm install
COPY client/ ./
RUN npm run build
# Setup the server
FROM node:9.0.0
WORKDIR /usr/app/
COPY --from=client /usr/app/client/build/ ./client/build/
WORKDIR /usr/app/server/
COPY server/package.json ./
RUN npm install
COPY server/ ./
ENV NODE_ENV 'production'
CMD ["npm", "start"]