Files
demystifying-docker/examples/fullstack/backend/Dockerfile
2025-06-11 15:23:27 -04:00

11 lines
206 B
Docker

FROM node:22-alpine AS base
WORKDIR /backend
COPY package.json .
RUN yarn install
COPY index.js .
FROM base AS develop
COPY --from=base /backend/ .
EXPOSE 3000
ENTRYPOINT [ "node", "--watch", "index.js" ]