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 FROM node:14
WORKDIR /home/cdn-app WORKDIR /app/cdn-app-insider
COPY package*.json ./ COPY package*.json ./

View File

@@ -1,9 +1,7 @@
version: '3.8' version: '3.8'
services: services:
cdn-app-insider: cdn-app-insider:
build: image: swiftlogiclabs/cdn-app-insider:latest
context: .
dockerfile: Dockerfile
restart: unless-stopped restart: unless-stopped
container_name: cdn-app-container container_name: cdn-app-container
ports: ports:
@@ -13,6 +11,8 @@ services:
- cdn-files:/home/cdn-app/cdn-files - cdn-files:/home/cdn-app/cdn-files
- report:/home/cdn-app/report - report:/home/cdn-app/report
- data:/home/cdn-app/data - 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: volumes:
cdn-files: cdn-files:
report: report: