cubbot/DockerFile

11 lines
178 B
Plaintext

FROM node
WORKDIR /app
COPY . .
RUN yarn install
RUN yarn run build
FROM node
WORKDIR /app
RUN npm install --production
COPY --from=0 /app/build ./build
CMD ["node", "index.js"]