orkeslos/Dockerfile
2022-11-26 16:21:55 +09:00

14 lines
No EOL
233 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 npm install
CMD ["index.js"]