diff --git a/Dockerfile b/Dockerfile index 11090805..5f3eadbc 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,5 +3,8 @@ FROM openjdk:17-oracle ARG JAR_FILE=build/libs/*.jar COPY ${JAR_FILE} app.jar -ENTRYPOINT ["java","-jar","/app.jar"] +COPY src/resources/codes/temp.cpp /codes/temp.cpp +COPY src/resources/codes/temp.py /codes/temp.py +COPY src/resources/codes/temp.java /codes/temp.java +ENTRYPOINT ["java","-jar","/app.jar"] diff --git a/Main.java b/Main.java deleted file mode 100644 index 596f9b79..00000000 --- a/Main.java +++ /dev/null @@ -1,11 +0,0 @@ -import java.util.*; -import java.lang.*; -import java.io.*; - -class Main -{ - public static void main (String[] args) - { - System.out.println("Hello World!"); - } -} \ No newline at end of file diff --git a/src/main/java/swm_nm/morandi/domain/testStart/service/TempCodeInitializer.java b/src/main/java/swm_nm/morandi/domain/testStart/service/TempCodeInitializer.java index aa74437f..0194fa89 100644 --- a/src/main/java/swm_nm/morandi/domain/testStart/service/TempCodeInitializer.java +++ b/src/main/java/swm_nm/morandi/domain/testStart/service/TempCodeInitializer.java @@ -36,9 +36,9 @@ public String generateKey(Tests test, int problemNumber, String language) { @PostConstruct public void initTempCodeInitializer() { languages = List.of("Python", "Cpp", "Java"); - String pythonCode = readCodeFromFile("src/main/resources/codes/temp.py"); - String cppCode = readCodeFromFile("src/main/resources/codes/temp.cpp"); - String javaCode = readCodeFromFile("src/main/resources/codes/temp.java"); + String pythonCode = readCodeFromFile("codes/temp.py"); + String cppCode = readCodeFromFile("codes/temp.cpp"); + String javaCode = readCodeFromFile("codes/Main.java"); codeLists = List.of(pythonCode, cppCode, javaCode); }