Move Dockerfile, entrypoint.sh, docker-compose.yml to repo root

Komodo's build ran `docker build -f Dockerfile .` from inside docker/,
which set the build context to docker/ — a directory that contains neither
package.json nor a nested docker/entrypoint.sh, so both COPY steps failed.
Moving these three files to the repo root makes `docker build .` from the
repo root work with default Komodo settings (no per-build-tool config).

- Dockerfile: update COPY entrypoint.sh path (drops docker/ prefix)
- docker-compose.yml: build.context = . (drops dockerfile: override)
- README.md: docker compose build (drops -f docker/docker-compose.yml)
This commit is contained in:
2026-09-12 00:41:57 -04:00
parent d99711563e
commit 2a6009270d
4 changed files with 3 additions and 4 deletions
+1 -1
View File
@@ -23,7 +23,7 @@ COPY --from=build /app/build ./build
COPY --from=build /app/node_modules ./node_modules COPY --from=build /app/node_modules ./node_modules
COPY --from=build /app/package.json ./package.json COPY --from=build /app/package.json ./package.json
COPY --from=build /app/src/lib/server/db/schema.sql ./build/schema.sql COPY --from=build /app/src/lib/server/db/schema.sql ./build/schema.sql
COPY docker/entrypoint.sh /entrypoint.sh COPY entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh RUN chmod +x /entrypoint.sh
ENV NODE_ENV=production ENV NODE_ENV=production
+1 -1
View File
@@ -64,7 +64,7 @@ login/status parsing (fetch mocked).
1. Build the image once locally or on the host: 1. Build the image once locally or on the host:
```bash ```bash
docker compose -f docker/docker-compose.yml build docker compose build
``` ```
2. Import the shape of the stack into Komodo using `komodo/stack.toml` (or 2. Import the shape of the stack into Komodo using `komodo/stack.toml` (or
@@ -1,8 +1,7 @@
services: services:
electric-cherry: electric-cherry:
build: build:
context: .. context: .
dockerfile: docker/Dockerfile
image: electric-cherry:latest image: electric-cherry:latest
container_name: electric-cherry container_name: electric-cherry
restart: unless-stopped restart: unless-stopped