mirror of
https://codeberg.org/timelimit/timelimit-server.git
synced 2025-10-03 01:39:31 +02:00
Initial commit
This commit is contained in:
commit
22c372e246
200 changed files with 27781 additions and 0 deletions
13
Dockerfile
Normal file
13
Dockerfile
Normal file
|
@ -0,0 +1,13 @@
|
|||
FROM node:11-alpine
|
||||
|
||||
# Create app directories
|
||||
RUN mkdir -p /usr/src/app
|
||||
WORKDIR /usr/src/app
|
||||
|
||||
# Install app dependencies
|
||||
COPY . /usr/src/app/
|
||||
RUN npm install --no-optional && npm run build && npm prune --production && rm -rf ./src
|
||||
|
||||
# Start the App
|
||||
EXPOSE 8080
|
||||
CMD [ "npm", "start" ]
|
Loading…
Add table
Add a link
Reference in a new issue