mount data volume

This commit is contained in:
b1ek 2023-08-05 03:59:10 +10:00
parent b6ec28ee29
commit 3d99879a1b
Signed by: blek
GPG Key ID: 14546221E3595D0C
2 changed files with 3 additions and 0 deletions

View File

@ -5,6 +5,7 @@ RUN cargo install --path .
FROM alpine FROM alpine
WORKDIR /opt/data
COPY --from=builder /usr/local/cargo/bin/gitea-bot /bin/gitea-bot COPY --from=builder /usr/local/cargo/bin/gitea-bot /bin/gitea-bot
RUN [ "gitea-bot" ] RUN [ "gitea-bot" ]

View File

@ -5,3 +5,5 @@ services:
context: . context: .
dockerfile: Dockerfile dockerfile: Dockerfile
restart: always restart: always
volumes:
- './:/opt/data'