From 9cfb568b56ce17f166ae87d1612e80b0d48b3fec Mon Sep 17 00:00:00 2001 From: Raphael Kabo Date: Wed, 31 Jul 2024 22:23:22 +0100 Subject: fix: Docker unhappy with CMD --- .gitignore | 2 +- Dockerfile | 2 +- docker-compose.yml | 4 +--- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/.gitignore b/.gitignore index e68efaa..79a8e15 100755 --- a/.gitignore +++ b/.gitignore @@ -2,7 +2,7 @@ # gathio custom -config/config.toml +config.toml dist public/events/* !public/events/.gitkeep diff --git a/Dockerfile b/Dockerfile index 1668095..5da290e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,4 +8,4 @@ COPY . /app/ # Always exit 0 here because TSC will fail while we're migrating to TypeScript but # not everything uses TypeScript RUN pnpm run build; exit 0 -CMD pnpm run start +CMD ["node", "dist/start.js"] diff --git a/docker-compose.yml b/docker-compose.yml index a7a3f59..a176800 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,5 +1,3 @@ -version: "3" - volumes: mongodb_data_db: @@ -14,7 +12,7 @@ services: # The path to Gathio's config folder - change to match your system - ./gathio-docker/config:/app/config # The path to Gathio's user-uploaded event images folder - change to match your system - - ./gathio-docker/events:/app/public/events + - ./gathio-docker/images:/app/public/events mongo: image: mongo:latest volumes: -- cgit v1.2.3