This commit is contained in:
parent
62738354a0
commit
0abfaca967
5 changed files with 15 additions and 13 deletions
|
|
@ -1,6 +1,6 @@
|
|||
# vim: filetype=dockerfile
|
||||
# Our entire toolchain runs in alpine
|
||||
FROM alpine:latest AS builder
|
||||
FROM alpine:3.13.5 AS builder
|
||||
|
||||
ENV PATH "$PATH:/app/.cargo/bin"
|
||||
# Needed for proper compiling of openssl-dev
|
||||
|
|
@ -29,8 +29,3 @@ WORKDIR /app
|
|||
RUN { curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain nightly; } && \
|
||||
rustup target add x86_64-unknown-linux-musl --toolchain nightly && \
|
||||
mkdir -p .cargo/registry target
|
||||
|
||||
# Copy source code over to builder
|
||||
COPY --chown=builder:builder Cargo.toml Cargo.lock ./
|
||||
COPY --chown=builder:builder src/ ./src/
|
||||
COPY --chown=builder:builder migrations/ ./migrations/
|
||||
|
|
|
|||
Reference in a new issue