-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e0a8032
commit 3368ec2
Showing
3 changed files
with
33 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
FROM gradle:8-jdk21 AS build | ||
ARG VERSION | ||
COPY . /data | ||
WORKDIR /data | ||
RUN gradle -Pversion="${VERSION}" --no-daemon clean build | ||
WORKDIR /dist | ||
RUN tar --strip-components=1 -xf "/data/build/distributions/PasteWrapper-${VERSION}.tar" | ||
|
||
FROM eclipse-temurin:21 | ||
COPY --from=build --link /dist/ /data/ | ||
ENV JAVA_OPTS="-server" | ||
CMD [ "/data/bin/PasteWrapper", "--no-ssl", "--docker" ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters