mirror of
https://codeberg.org/timelimit/timelimit-server-ui.git
synced 2025-10-03 01:09:15 +02:00
Add containerfile
This commit is contained in:
parent
5d310c21d8
commit
53e7041e34
1 changed files with 24 additions and 0 deletions
24
Containerfile
Normal file
24
Containerfile
Normal 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" ]
|
Loading…
Add table
Add a link
Reference in a new issue