diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..4a21406 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,18 @@ + +FROM node:18-alpine AS builder + +WORKDIR /usr/src/app + +COPY package*.json ./ + +RUN npm install --only=production + +COPY . . + +FROM node:18-alpine + +WORKDIR /usr/src/app + +COPY --from=builder /usr/src/app . +EXPOSE 3000 +CMD [ "node", "app.js" ] \ No newline at end of file