space/packages/example-server/Dockerfile
2021-11-03 23:28:32 +11:00

22 lines
567 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-lib
RUN lerna run build
ENTRYPOINT ["tini", "--"]
CMD ["node", "packages/example-server"]
EXPOSE 80