orkeslos/Dockerfile
2022-11-26 19:02:23 +09:00

14 lines
No EOL
247 B
Docker

FROM node:18 AS build-env
COPY . /app
WORKDIR /app
RUN yarn
RUN yarn build
FROM node:18
COPY --from=build-env /app/build /app
COPY package.json /app/package.json
WORKDIR /app
env NODE_ENV=production
RUN yarn install --production
CMD ["index.js"]