Rinze/Dockerfile

15 lines
289 B
Docker
Raw Normal View History

2024-11-21 19:37:14 +00:00
FROM node:20-alpine
2021-05-11 23:22:25 +00:00
# install dependencies
WORKDIR /app
COPY . .
2024-03-12 17:37:33 +00:00
RUN npm install
RUN npm run build
2024-11-21 19:37:14 +00:00
FROM node:20-alpine
2021-05-11 23:22:25 +00:00
WORKDIR /app
2022-07-24 16:37:50 +00:00
COPY --from=0 /app/build /app
COPY --from=0 /app/package.json /app
COPY --from=0 /app/node_modules /app/node_modules
2021-05-11 23:22:25 +00:00
EXPOSE 3000
2022-07-24 16:37:50 +00:00
CMD ["node","./index.js"]