diff --git a/Dockerfile b/Dockerfile index 6f949c9..75797b3 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,6 +5,7 @@ RUN cargo install --path . FROM alpine +WORKDIR /opt/data COPY --from=builder /usr/local/cargo/bin/gitea-bot /bin/gitea-bot RUN [ "gitea-bot" ] \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml index c8544b3..9bb61cf 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -5,3 +5,5 @@ services: context: . dockerfile: Dockerfile restart: always + volumes: + - './:/opt/data' \ No newline at end of file