DAS_2023_1/arutunyan_dmitry_lab_2/worker-1/Dockerfile

10 lines
181 B
Docker

FROM openjdk:21-jdk
RUN ["mkdir", "/var/data"]
RUN ["mkdir", "/var/result"]
COPY src/Main.java /opt/app/Main.java
WORKDIR /opt/app
RUN ["javac", "Main.java"]
CMD ["java", "Main"]