!20 fix(deploy): 修复后端容器 SQLite 数据目录不存在导致 502
Merge pull request !20 from 何朝晖/hotfix/deploy
This commit is contained in:
@@ -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"]
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user