From 5913c024c22c57b180336a27363cf904ae6f80eb Mon Sep 17 00:00:00 2001 From: asonix Date: Wed, 10 Jun 2020 18:18:22 -0500 Subject: [PATCH] Version v0.1.0-r107 --- docker/prod/Dockerfile.amd64 | 3 ++- docker/prod/Dockerfile.arm32v7 | 3 ++- docker/prod/Dockerfile.arm64v8 | 3 ++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/docker/prod/Dockerfile.amd64 b/docker/prod/Dockerfile.amd64 index 63e3ae7..e0257d4 100644 --- a/docker/prod/Dockerfile.amd64 +++ b/docker/prod/Dockerfile.amd64 @@ -56,6 +56,7 @@ FROM amd64/alpine:3.12 ARG UID=991 ARG GID=991 ARG BINARY=relay +ARG TARGET=x86_64-unknown-linux-musl RUN \ apk add tini && \ @@ -63,7 +64,7 @@ RUN \ adduser -D -G relay -u $UID -g "" -h /opt/relay relay && \ chown -R relay:relay /opt/relay -COPY --from=amd64-builder /opt/build/repo/target/$TARGET/release/$BINARY /usr/bin/$BINARY +COPY --from=builder /opt/build/repo/target/$TARGET/release/$BINARY /usr/bin/$BINARY EXPOSE 8080 WORKDIR /opt/relay diff --git a/docker/prod/Dockerfile.arm32v7 b/docker/prod/Dockerfile.arm32v7 index 17a0151..f3b32ce 100644 --- a/docker/prod/Dockerfile.arm32v7 +++ b/docker/prod/Dockerfile.arm32v7 @@ -56,6 +56,7 @@ FROM arm32v7/alpine:3.12 ARG UID=991 ARG GID=991 ARG BINARY=relay +ARG TARGET=arm-unknown-linux-musleabihf RUN \ apk add tini && \ @@ -63,7 +64,7 @@ RUN \ adduser -D -G relay -u $UID -g "" -h /opt/relay relay && \ chown -R relay:relay /opt/relay -COPY --from=arm32v7-builder /opt/build/repo/target/$TARGET/release/$BINARY /usr/bin/$BINARY +COPY --from=builder /opt/build/repo/target/$TARGET/release/$BINARY /usr/bin/$BINARY EXPOSE 8080 WORKDIR /opt/relay diff --git a/docker/prod/Dockerfile.arm64v8 b/docker/prod/Dockerfile.arm64v8 index d45d48b..91c9652 100644 --- a/docker/prod/Dockerfile.arm64v8 +++ b/docker/prod/Dockerfile.arm64v8 @@ -56,6 +56,7 @@ FROM arm64v8/alpine:3.12 ARG UID=991 ARG GID=991 ARG BINARY=relay +ARG TARGET=aarch64-unknown-linux-musl RUN \ apk add tini && \ @@ -63,7 +64,7 @@ RUN \ adduser -D -G relay -u $UID -g "" -h /opt/relay relay && \ chown -R relay:relay /opt/relay -COPY --from=aarch64-builder /opt/build/repo/target/$TARGET/release/$BINARY /usr/bin/$BINARY +COPY --from=builder /opt/build/repo/target/$TARGET/release/$BINARY /usr/bin/$BINARY EXPOSE 8080 WORKDIR /opt/relay