mirror of
https://codeberg.org/timelimit/timelimit-server.git
synced 2026-08-31 19:03:45 +02:00
Whitelist files in the Dockerfile
This commit is contained in:
+5
-2
@@ -5,8 +5,11 @@ 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
|
||||
COPY package.json package-lock.json tsconfig.json tslint.json Readme.md /usr/src/app/
|
||||
COPY src/ /usr/src/app/src/
|
||||
COPY scripts/ /usr/src/app/scripts/
|
||||
COPY other/ /usr/src/app/other/
|
||||
RUN mkdir -p docs/schema && npm install --no-optional && npm run build && npm prune --production && rm -rf ./src
|
||||
|
||||
# Start the App
|
||||
EXPOSE 8080
|
||||
|
||||
Reference in New Issue
Block a user