diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..62cceee --- /dev/null +++ b/.dockerignore @@ -0,0 +1,3 @@ +node_modules/ +assets/ +.dockercontainer.json \ No newline at end of file diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..4e8d792 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,11 @@ +FROM docker.io/node:22-alpine +ENV NODE_ENV=production + +WORKDIR /app +COPY package*.json ./ +RUN npm install --omit=dev && npm cache clean --force +COPY . . +USER node +EXPOSE 3000 + +CMD ["npm", "start"]