mirror of
https://codeberg.org/timelimit/timelimit-server.git
synced 2025-10-03 09:49:32 +02:00
13 lines
283 B
Docker
13 lines
283 B
Docker
FROM node:14-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" ]
|