From 53e7041e34c34b5c64252adcf36f244b67d6285d Mon Sep 17 00:00:00 2001 From: Varac Date: Fri, 11 Oct 2024 10:04:21 +0200 Subject: [PATCH] Add containerfile --- Containerfile | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 Containerfile diff --git a/Containerfile b/Containerfile new file mode 100644 index 0000000..49095d7 --- /dev/null +++ b/Containerfile @@ -0,0 +1,24 @@ +# https://hub.docker.com/_/node/tags +# FROM node:20.18.0-alpine3.20 +# Use same as timelimit-server +FROM node:16-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 \ + .eslintrc.json \ + finish-build.mjs \ + Readme.md \ + /usr/src/app/ +COPY src/ /usr/src/app/src/ +RUN npm install \ + && npm run build + +# Start the App +EXPOSE 1234 +CMD [ "npm", "run", "develop" ]