Version v0.1.0-r107

This commit is contained in:
asonix 2020-06-10 18:18:22 -05:00
parent 96b526e87e
commit 5913c024c2
3 changed files with 6 additions and 3 deletions

View file

@ -56,6 +56,7 @@ FROM amd64/alpine:3.12
ARG UID=991 ARG UID=991
ARG GID=991 ARG GID=991
ARG BINARY=relay ARG BINARY=relay
ARG TARGET=x86_64-unknown-linux-musl
RUN \ RUN \
apk add tini && \ apk add tini && \
@ -63,7 +64,7 @@ RUN \
adduser -D -G relay -u $UID -g "" -h /opt/relay relay && \ adduser -D -G relay -u $UID -g "" -h /opt/relay relay && \
chown -R relay:relay /opt/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 EXPOSE 8080
WORKDIR /opt/relay WORKDIR /opt/relay

View file

@ -56,6 +56,7 @@ FROM arm32v7/alpine:3.12
ARG UID=991 ARG UID=991
ARG GID=991 ARG GID=991
ARG BINARY=relay ARG BINARY=relay
ARG TARGET=arm-unknown-linux-musleabihf
RUN \ RUN \
apk add tini && \ apk add tini && \
@ -63,7 +64,7 @@ RUN \
adduser -D -G relay -u $UID -g "" -h /opt/relay relay && \ adduser -D -G relay -u $UID -g "" -h /opt/relay relay && \
chown -R relay:relay /opt/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 EXPOSE 8080
WORKDIR /opt/relay WORKDIR /opt/relay

View file

@ -56,6 +56,7 @@ FROM arm64v8/alpine:3.12
ARG UID=991 ARG UID=991
ARG GID=991 ARG GID=991
ARG BINARY=relay ARG BINARY=relay
ARG TARGET=aarch64-unknown-linux-musl
RUN \ RUN \
apk add tini && \ apk add tini && \
@ -63,7 +64,7 @@ RUN \
adduser -D -G relay -u $UID -g "" -h /opt/relay relay && \ adduser -D -G relay -u $UID -g "" -h /opt/relay relay && \
chown -R relay:relay /opt/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 EXPOSE 8080
WORKDIR /opt/relay WORKDIR /opt/relay