Refactor Dockerfile and docker-compose.yml to use new directory structure
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2024-04-17 23:54:51 +02:00
parent 06a694417b
commit 44e63e4265
3 changed files with 4 additions and 11 deletions

View File

@@ -8,8 +8,6 @@ RUN npm install
COPY . . COPY . .
RUN mkdir -p /app/data /app/report /app/cdn-files
EXPOSE 5053 EXPOSE 5053
CMD [ "npm", "run", "start" ] CMD [ "npm", "run", "start" ]

View File

@@ -5,12 +5,7 @@ services:
ports: ports:
- 5053:5053 - 5053:5053
volumes: volumes:
- data-volume:/app/data - ./data:/app/cdn-app-insider/data
- report-volume:/app/report - ./report:/app/cdn-app-insider/report
- cdn-files-volume:/app/cdn-files - ./cdn-files:/app/cdn-app-insider/cdn-files
restart: unless-stopped restart: unless-stopped
volumes:
data-volume:
report-volume:
cdn-files-volume:

View File

@@ -4,7 +4,7 @@
"description": "", "description": "",
"main": "server.js", "main": "server.js",
"scripts": { "scripts": {
"start": "node models/fileCreated.js && node server.js" "start": "node server.js"
}, },
"author": "Dinawo - Group SwiftLogic Labs", "author": "Dinawo - Group SwiftLogic Labs",
"license": "ISC", "license": "ISC",