Copy git directory and templates in build container

This commit is contained in:
Valentin Brandl 2019-04-23 18:21:42 +02:00
parent 33288efe82
commit 781cc9c8fc
No known key found for this signature in database
GPG Key ID: 30D341DD34118D7D

View File

@ -11,7 +11,9 @@ RUN cargo build --release
RUN rm -r ./target/x86_64-unknown-linux-musl/release/.fingerprint/hoc-* RUN rm -r ./target/x86_64-unknown-linux-musl/release/.fingerprint/hoc-*
# copy source code # copy source code
COPY ./.git ./.git
COPY ./static ./static COPY ./static ./static
COPY ./templates ./templates
COPY ./src ./src COPY ./src ./src
# build source code # build source code
RUN cargo build --release RUN cargo build --release