Refactor Dockerfile and docker-compose.yml to use new directory structure
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@@ -8,8 +8,6 @@ RUN npm install
|
||||
|
||||
COPY . .
|
||||
|
||||
RUN mkdir -p /app/data /app/report /app/cdn-files
|
||||
|
||||
EXPOSE 5053
|
||||
|
||||
CMD [ "npm", "run", "start" ]
|
||||
|
||||
@@ -5,12 +5,7 @@ services:
|
||||
ports:
|
||||
- 5053:5053
|
||||
volumes:
|
||||
- data-volume:/app/data
|
||||
- report-volume:/app/report
|
||||
- cdn-files-volume:/app/cdn-files
|
||||
- ./data:/app/cdn-app-insider/data
|
||||
- ./report:/app/cdn-app-insider/report
|
||||
- ./cdn-files:/app/cdn-app-insider/cdn-files
|
||||
restart: unless-stopped
|
||||
|
||||
volumes:
|
||||
data-volume:
|
||||
report-volume:
|
||||
cdn-files-volume:
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
"description": "",
|
||||
"main": "server.js",
|
||||
"scripts": {
|
||||
"start": "node models/fileCreated.js && node server.js"
|
||||
"start": "node server.js"
|
||||
},
|
||||
"author": "Dinawo - Group SwiftLogic Labs",
|
||||
"license": "ISC",
|
||||
|
||||
Reference in New Issue
Block a user