Skip to content

Commit

Permalink
Don't use wget in dockerfile (no more apk add)
Browse files Browse the repository at this point in the history
  • Loading branch information
RoblKyogre committed Mar 2, 2024
1 parent c5651cd commit a8998dc
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,12 @@ ARG TARGETOS
ARG TARGETARCH
ARG TARGETVARIANT

RUN apk add curl
COPY /root /

WORKDIR /app
#COPY --from=viaaas-build /builder/VIAaaS/build/libs/VIAaaS-*-all.jar /app/VIAaaS-all.jar
RUN --mount=type=secret,id=JITPACK_TOKEN \
curl -u$(cat /run/secrets/JITPACK_TOKEN) -Lf --output /app/VIAaaS-all.jar "https://jitpack.io/com/github/ViaVersion/VIAaaS/dev-SNAPSHOT/VIAaaS-dev-SNAPSHOT-all.jar"
wget --user $(cat /run/secrets/JITPACK_TOKEN) -O /app/VIAaaS-all.jar "https://jitpack.io/com/github/ViaVersion/VIAaaS/dev-SNAPSHOT/VIAaaS-dev-SNAPSHOT-all.jar"

STOPSIGNAL SIGTERM

Expand Down

0 comments on commit a8998dc

Please sign in to comment.