Add containerfile

This commit is contained in:
Varac 2024-10-11 10:04:21 +02:00
parent 5d310c21d8
commit 53e7041e34
No known key found for this signature in database
GPG key ID: 5465E77E7876ED04

24
Containerfile Normal file
View file

@ -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" ]