mirror of
https://github.com/andwati/cymelle.git
synced 2026-11-26 17:58:46 +00:00
deploying
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
FROM eclipse-temurin:17-jdk-jammy AS build
|
||||
|
||||
WORKDIR /workspace
|
||||
|
||||
COPY gradlew settings.gradle.kts build.gradle.kts ./
|
||||
COPY gradle ./gradle
|
||||
COPY src ./src
|
||||
|
||||
RUN chmod +x ./gradlew && ./gradlew --no-daemon bootJar -x test
|
||||
|
||||
FROM eclipse-temurin:17-jre-jammy
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
RUN groupadd --system app && useradd --system --gid app app
|
||||
|
||||
COPY --from=build /workspace/build/libs/*.jar /app/app.jar
|
||||
COPY docker-entrypoint.sh /app/docker-entrypoint.sh
|
||||
|
||||
RUN chmod +x /app/docker-entrypoint.sh
|
||||
|
||||
USER app
|
||||
|
||||
EXPOSE 8080
|
||||
|
||||
ENTRYPOINT ["/app/docker-entrypoint.sh"]
|
||||
Reference in New Issue
Block a user