1
0
mirror of https://github.com/barthuijgen/factorio-sites.git synced 2024-11-24 08:52:36 +02:00
factorio-sites/blueprints.Dockerfile

25 lines
370 B
Docker

FROM node:14-slim as builder
WORKDIR /usr/src/app
COPY package.json .
COPY yarn.lock .
RUN yarn
COPY . .
RUN yarn nx build blueprints
FROM node:14-slim
WORKDIR /usr/src/app
COPY apps/blueprints/prod.package.json ./package.json
COPY yarn.lock .
RUN yarn install --production
COPY --from=builder /usr/src/app/dist/apps/blueprints .
CMD ["yarn", "next", "start"]