mirror of
https://codeberg.org/timelimit/timelimit-server-ui.git
synced 2025-10-03 09:19:14 +02:00
24 lines
476 B
Docker
24 lines
476 B
Docker
# 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" ]
|