Update 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-14 16:22:10 +02:00
parent 1006dcb1f5
commit 9a5b4c20cb
2 changed files with 6 additions and 6 deletions

View File

@@ -1,6 +1,6 @@
FROM node:14
WORKDIR /home/cdn-app
WORKDIR /app/cdn-app-insider
COPY package*.json ./
@@ -10,4 +10,4 @@ COPY . .
EXPOSE 5053
CMD [ "npm", "start" ]
CMD [ "npm", "start" ]

View File

@@ -1,9 +1,7 @@
version: '3.8'
services:
cdn-app-insider:
build:
context: .
dockerfile: Dockerfile
image: swiftlogiclabs/cdn-app-insider:latest
restart: unless-stopped
container_name: cdn-app-container
ports:
@@ -13,7 +11,9 @@ services:
- cdn-files:/home/cdn-app/cdn-files
- report:/home/cdn-app/report
- data:/home/cdn-app/data
command: sh -c "if [ ! -f /home/cdn-app/moved_files ]; then mv /app/cdn-app-insider/* /home/cdn-app && touch /home/cdn-app/moved_files; fi && node server.js"
volumes:
cdn-files:
report:
data:
data: