Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FIX] 파일 위치 오류 수정 #463

Merged
merged 3 commits into from
Oct 17, 2023
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
5 changes: 4 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
11 changes: 0 additions & 11 deletions Main.java

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down
Loading