aboutsummaryrefslogtreecommitdiffstats
path: root/Dockerfile
blob: 5c1fba2c407d5eb59baac1f05a057b344ce194bb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
FROM node AS client-env
WORKDIR /client
COPY client/package.json client/yarn.lock /client/
RUN yarn
COPY client/ /client/
RUN yarn build

FROM node
WORKDIR /server
COPY server/package.json server/yarn.lock /server/
RUN yarn
COPY server/ /server/
RUN yarn build

COPY --from=client-env /client/dist/ /server/static/

EXPOSE 3000
CMD ["node", "main.js"]