!21 !20 fix(deploy): 修复后端容器 SQLite 数据目录不存在导致 502

Merge pull request !21 from 何朝晖/develop
This commit is contained in:
2026-05-24 06:49:22 +00:00
committed by Gitee
2 changed files with 8 additions and 0 deletions
+3
View File
@@ -17,5 +17,8 @@ RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories
RUN apk add --no-cache ca-certificates
COPY --from=builder /bin/gen2d /usr/local/bin/gen2d
RUN mkdir -p /data
WORKDIR /
EXPOSE 8080
CMD ["gen2d"]
+5
View File
@@ -6,6 +6,8 @@ services:
environment:
- GEN2D_MODE=release
- GEN2D_PORT=8080
volumes:
- backend-data:/data
expose:
- "8080"
restart: unless-stopped
@@ -19,3 +21,6 @@ services:
depends_on:
- backend
restart: unless-stopped
volumes:
backend-data: