Create Dockerfile

This commit is contained in:
Nick Tampakas
2024-11-06 10:16:08 +02:00
parent 29da69843d
commit efb0fb3e34

14
Dockerfile Normal file
View File

@@ -0,0 +1,14 @@
FROM node:20-alpine
ARG PORT=3030
WORKDIR /app
COPY . .
RUN npm install
RUN touch server/util/poaps.txt
RUN touch server/util/assignments.json
RUN npm run build
EXPOSE ${PORT}
CMD ["node", "build/server/index.bundle.js"]