Skip to content

Commit a7f7b8a

Browse files
committed
Move around args/envs
1 parent 6dd8f6b commit a7f7b8a

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Dockerfile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,6 @@
11
FROM ubuntu:20.04
22

3-
ARG TARGET=x86_64-unknown-linux-musl
4-
ARG RUST_MUSL_MAKE_VER=0.9.9
5-
ARG RUST_MUSL_MAKE_CONFIG=config.mak
6-
73
ENV DEBIAN_FRONTEND=noninteractive
8-
ENV RUST_MUSL_CROSS_TARGET=$TARGET
94

105
# Make sure we have basic dev tools for building C libraries. Our goal
116
# here is to support the musl-libc builds and Cargo builds needed for a
@@ -36,6 +31,11 @@ RUN apt-get update && \
3631
COPY lets-encrypt-r3-cross-signed.crt /usr/local/share/ca-certificates
3732
RUN update-ca-certificates
3833

34+
ARG TARGET=x86_64-unknown-linux-musl
35+
ENV RUST_MUSL_CROSS_TARGET=$TARGET
36+
ARG RUST_MUSL_MAKE_VER=0.9.9
37+
ARG RUST_MUSL_MAKE_CONFIG=config.mak
38+
3939
COPY $RUST_MUSL_MAKE_CONFIG /tmp/config.mak
4040
RUN cd /tmp && curl -Lsq -o musl-cross-make.zip https://github.com/richfelker/musl-cross-make/archive/v$RUST_MUSL_MAKE_VER.zip && \
4141
unzip -q musl-cross-make.zip && \

0 commit comments

Comments
 (0)