forked from mirrors/relay
Version v0.1.0-r107
This commit is contained in:
parent
96b526e87e
commit
5913c024c2
3 changed files with 6 additions and 3 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue