fix: docker images

This commit is contained in:
Paul Pan 2024-03-13 22:17:00 +08:00
parent 634476f46e
commit 11eb5c9916
Signed by: Paul
GPG Key ID: D639BDF5BA578AF4
2 changed files with 8 additions and 14 deletions

View File

@ -31,5 +31,5 @@ COPY --from=rootfs-run / /app/resource/runner/framework/rootfs/run
# nsjail # nsjail
COPY --from=rootfs-full /woj/framework/scripts/nsjail /app/resource/runner/framework/scripts/nsjail COPY --from=rootfs-full /woj/framework/scripts/nsjail /app/resource/runner/framework/scripts/nsjail
# reap zombies from containerd-shim # reap zombies
ENTRYPOINT ["/sbin/tini", "/app/docker-entrypoint.sh"] ENTRYPOINT ["/usr/bin/tini", "/app/docker-entrypoint.sh"]

View File

@ -18,15 +18,11 @@ services:
- STORAGE_BUCKET=woj - STORAGE_BUCKET=woj
- DEVELOPMENT=true - DEVELOPMENT=true
volumes: volumes:
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro - /etc/localtime:/etc/localtime:ro
depends_on: depends_on:
storage: - storage
condition: service_healthy - cache
cache: - db
condition: service_healthy
db:
condition: service_healthy
ports: ports:
- "8000:8000" - "8000:8000"
@ -47,13 +43,11 @@ services:
- SETUP_CGROUP=true - SETUP_CGROUP=true
volumes: volumes:
- runner:/app/resource/runner/user - runner:/app/resource/runner/user
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro - /etc/localtime:/etc/localtime:ro
depends_on: depends_on:
storage: - storage
condition: service_healthy - cache
cache: - db
condition: service_healthy
storage: storage:
image: quay.io/minio/minio:latest image: quay.io/minio/minio:latest