fix minor git issues with docker

This commit is contained in:
blek 2023-10-09 22:46:47 +10:00
parent f7e69e5067
commit 3ba86697b7
Signed by: blek
GPG Key ID: 14546221E3595D0C
2 changed files with 3 additions and 0 deletions

View File

@ -8,6 +8,7 @@ services:
bfile:
volumes:
- './filed:/opt/code'
- './.git:/opt/code/.git:ro' # for fetching the latest commit version
- '/opt/code/target'
- './volatile/files:/opt/user_uploads'
caddy:

View File

@ -4,6 +4,8 @@ FROM rust as builder
WORKDIR /opt/code
COPY . .
RUN apt install -y git
# No build is done during this step
# since the directory will be mounted anyways
# to the dev's machine.