remove certain things and added stuff

This commit is contained in:
2025-05-26 15:05:59 +03:00
parent 035efd90e0
commit 832cd4aa69
2 changed files with 24 additions and 3 deletions

21
Dockerfile Normal file
View File

@@ -0,0 +1,21 @@
# Use a minimal java image
FROM openjdk:21-jdk-slim
# Set the working directory inside the container
WORKDIR /work/
# Set proper permissions for user 1001
RUN chown 1001 /work \
&& chmod "g+rwX" /work
# Copy the entire Quarkus app folder and set ownership
COPY --chown=1001:root quarkus-app/ /work/quarkus-app
# Expose the application's port
EXPOSE 8090
# Switch to non-root user for better security
USER 1001
# Define the entrypoint to run the JAR
CMD ["java", "-Dquarkus.http.host=0.0.0.0", "-Dquarkus.http.port=8090", "-jar", "/work/quarkus-app/quarkus-run.jar"]