Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
27 lines (17 sloc) 410 Bytes
# 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"]
You can’t perform that action at this time.