summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRaphael Kabo <raphael@spruce.eco>2024-07-31 22:23:22 +0100
committerRaphael Kabo <raphael@spruce.eco>2024-07-31 22:23:22 +0100
commit9cfb568b56ce17f166ae87d1612e80b0d48b3fec (patch)
tree6646b107be69f4f563eafc25b670bc49e829f2bb
parent55e0d6ff22b6d3b037de6b9b0cb0c8ce6c2a19a9 (diff)
fix: Docker unhappy with CMD
-rwxr-xr-x.gitignore2
-rw-r--r--Dockerfile2
-rw-r--r--docker-compose.yml4
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: