Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions z_checkers_dockerfiles/Java.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,15 @@ RUN mvn -f /home/app/pom.xml clean package
#
FROM alpine:20240329

WORKDIR /app

RUN apk add openjdk17-jre

ENV SERVER_ENDPOINT http://backend:8000/api/check_system_callback
ENV ENV_EXECUTOR_ENABLE true

RUN chmod -R 555 /app && mkdir /app/adir && chattr +i /app/adir && chmod -R 557 /app/adir

COPY --from=build /home/app/target/ProgramCheckSystem-1.0-SNAPSHOT.jar /usr/local/lib/demo.jar
EXPOSE 7070
ENTRYPOINT ["java","-jar","/usr/local/lib/demo.jar"]
2 changes: 1 addition & 1 deletion z_checkers_dockerfiles/Plaintext.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ ENV ENV_EXECUTOR_FILENAME main.txt
ENV ENV_EXECUTOR_WITH_FILENAME false

RUN apk add --update --no-cache python3 && ln -sf python3 /usr/bin/python
RUN chmod -R 777 /app
RUN chmod -R 555 /app && mkdir /app/adir && chattr +i /app/adir && chmod -R 557 /app/adir

USER appuser

Expand Down
4 changes: 2 additions & 2 deletions z_checkers_dockerfiles/Python.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,12 @@ ENV ENV_EXECUTOR_RUN_COMMAND python3
ENV ENV_EXECUTOR_FILENAME main.py

RUN apk add --update --no-cache python3 && ln -sf python3 /usr/bin/python
RUN chmod -R 777 /app
RUN chmod -R 555 /app && mkdir /app/adir && chattr +i /app/adir && chmod -R 557 /app/adir

USER appuser

COPY --from=build /home/app/target/ProgramCheckSystem-1.0-SNAPSHOT.jar /app/main.jar


EXPOSE 7070
ENTRYPOINT ["java","-jar","/app/main.jar"]
ENTRYPOINT ["java","-jar","/app/main.jar"]