fix minor git issues with docker
This commit is contained in:
parent
f7e69e5067
commit
3ba86697b7
|
@ -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:
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue