aboutsummaryrefslogtreecommitdiffstats
path: root/Dockerfile
blob: 502a4b734c7a5be3a97c671901d89efce1a10cd2 (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/
RUN yarn
COPY client/ /client/
RUN yarn build

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

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

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