Dockerfile
270 Bytes
FROM node:14-alpine
WORKDIR /usr
COPY common ./common
COPY server ./server
WORKDIR /usr/common
RUN yarn install
WORKDIR /usr/server
RUN apk add --no-cache build-base gcc python3
RUN yarn install
RUN yarn build
EXPOSE 3000
CMD [ "node", "dist/server/index.js" ]