Skip to content

Commit

Permalink
just make it an add now
Browse files Browse the repository at this point in the history
  • Loading branch information
RoblKyogre authored Nov 14, 2024
1 parent 5959dec commit 437a99a
Showing 1 changed file with 1 addition and 21 deletions.
22 changes: 1 addition & 21 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,20 +1,4 @@
ARG BASE_IMAGE=eclipse-temurin:21-jre-alpine
#ARG BUILD_IMAGE=eclipse-temurin:17-jdk

#FROM ${BUILD_IMAGE} as viaaas-build

#ARG TARGETOS
#ARG TARGETARCH
#ARG TARGETVARIANT

#WORKDIR /builder

#RUN apt-get update && apt-get install -y git
#RUN git clone -b dev https://github.com/ViaVersion/VIAaaS.git VIAaaS

#WORKDIR /builder/VIAaaS
#RUN ./gradlew build --no-daemon

FROM ${BASE_IMAGE} as final

ARG TARGETOS
Expand All @@ -24,11 +8,7 @@ ARG TARGETVARIANT
COPY /root /

WORKDIR /app
#COPY --from=viaaas-build /builder/VIAaaS/build/libs/VIAaaS-*-all.jar /app/VIAaaS-all.jar
ARG CACHEBUST
RUN echo ${CACHEBUST}
RUN --mount=type=secret,id=JITPACK_TOKEN \
wget --user $(cat /run/secrets/JITPACK_TOKEN) -O /app/VIAaaS-all.jar "https://jitpack.io/com/github/ViaVersion/VIAaaS/master-SNAPSHOT/VIAaaS-master-SNAPSHOT-all.jar"
ADD "https://jitpack.io/com/github/ViaVersion/VIAaaS/master-SNAPSHOT/VIAaaS-master-SNAPSHOT-all.jar" /app/VIAaaS-all.jar

STOPSIGNAL SIGTERM

Expand Down

0 comments on commit 437a99a

Please sign in to comment.