Update 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:
@@ -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 ./
|
||||||
|
|
||||||
|
|||||||
@@ -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:
|
||||||
|
|||||||
Reference in New Issue
Block a user