[closes #16] fixed Dockerfile

master
Jef Roosens 2021-04-12 15:43:23 +02:00
parent 7b9bf223c6
commit 8da8af9a45
Signed by: Jef Roosens
GPG Key ID: B580B976584B5F30
1 changed files with 2 additions and 1 deletions

View File

@ -20,8 +20,9 @@ COPY src/ ./src/
# Thank the lords that this article exists # Thank the lords that this article exists
# https://users.rust-lang.org/t/sigsegv-with-program-linked-against-openssl-in-an-alpine-container/52172 # https://users.rust-lang.org/t/sigsegv-with-program-linked-against-openssl-in-an-alpine-container/52172
# TODO add what these flags do & why they work # TODO add what these flags do & why they work
# NOTE: cargo install auto-appends bin to the path
RUN --mount=type=cache,target=/usr/src/app/target RUSTFLAGS="-C target-feature=-crt-static" cargo test && \ RUN --mount=type=cache,target=/usr/src/app/target RUSTFLAGS="-C target-feature=-crt-static" cargo test && \
RUSTFLAGS="-C target-feature=-crt-static" cargo install --path . --bin fej --root /usr/local/bin RUSTFLAGS="-C target-feature=-crt-static" cargo install --path . --bin fej --root /usr/local
# Now, we create the actual image # Now, we create the actual image