Add custom Dockerfile for timelimit-server

This commit is contained in:
2026-04-08 13:55:19 +02:00
parent 0671c429a4
commit e0b49639d0
2 changed files with 26 additions and 0 deletions
+16
View File
@@ -0,0 +1,16 @@
FROM node:24-alpine
# Create app directories
RUN mkdir -p /usr/src/app
WORKDIR /usr/src/app
# Install app dependencies
COPY package.json package-lock.json tsconfig.json .eslintignore eslint.config.mjs Readme.md /usr/src/app/
COPY src/ /usr/src/app/src/
COPY scripts/ /usr/src/app/scripts/
COPY other/ /usr/src/app/other/
RUN mkdir -p docs/schema && npm install --exclude=optional && npm run build && npm prune --omit=dev && rm -rf ./src
# Start the App
EXPOSE 8080
CMD [ "npm", "start" ]