fix minor git issues with docker
This commit is contained in:
parent
f7e69e5067
commit
3ba86697b7
|
@ -8,6 +8,7 @@ services:
|
||||||
bfile:
|
bfile:
|
||||||
volumes:
|
volumes:
|
||||||
- './filed:/opt/code'
|
- './filed:/opt/code'
|
||||||
|
- './.git:/opt/code/.git:ro' # for fetching the latest commit version
|
||||||
- '/opt/code/target'
|
- '/opt/code/target'
|
||||||
- './volatile/files:/opt/user_uploads'
|
- './volatile/files:/opt/user_uploads'
|
||||||
caddy:
|
caddy:
|
||||||
|
|
|
@ -4,6 +4,8 @@ FROM rust as builder
|
||||||
WORKDIR /opt/code
|
WORKDIR /opt/code
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
|
RUN apt install -y git
|
||||||
|
|
||||||
# No build is done during this step
|
# No build is done during this step
|
||||||
# since the directory will be mounted anyways
|
# since the directory will be mounted anyways
|
||||||
# to the dev's machine.
|
# to the dev's machine.
|
||||||
|
|
Loading…
Reference in New Issue