space/packages/example-server/Dockerfile
2021-05-15 16:18:13 +10:00

21 lines
543 B
Docker

FROM node:16-alpine
RUN apk add --no-cache tini
RUN yarn global add lerna
WORKDIR /opt/example-server
COPY packages/ketchup-common/package.json packages/ketchup-common/
COPY packages/ketchup-server/package.json packages/ketchup-server/
COPY packages/example-common/package.json packages/example-common/
COPY packages/example-server/package.json packages/example-server/
COPY package.json yarn.lock lerna.json ./
RUN lerna bootstrap
COPY . ./
RUN lerna run build
ENTRYPOINT ["tini", "--"]
CMD ["node", "packages/example-server"]
EXPOSE 80