diff --git a/Teams/red_titans/Dockerfile b/Teams/red_titans/Dockerfile index d086a8d..643dcc0 100644 --- a/Teams/red_titans/Dockerfile +++ b/Teams/red_titans/Dockerfile @@ -1,13 +1,13 @@ -FROM eclipse-temurin:17-jdk-jammy as build - -COPY src/Inception.java /src/ -COPY src/inception.png /src/ -RUN javac /src/Inception.java && ls -al /src - FROM eclipse-temurin:17-jdk-jammy -COPY --from=build src/*.class /app/ +WORKDIR /src + +COPY src/Inception.java . +COPY src/inception.png . -ENTRYPOINT cd app && java Inception +#COPY --from=build src/*.class /app/ +RUN javac /src/Inception.java +CMD ["java /src/Inception"] +#ENTRYPOINT ["javaXX", "InceptionXX"] \ No newline at end of file diff --git a/Teams/red_titans/docker-compose.yml b/Teams/red_titans/docker-compose.yml index d2741db..3c503f4 100644 --- a/Teams/red_titans/docker-compose.yml +++ b/Teams/red_titans/docker-compose.yml @@ -8,4 +8,6 @@ services: volumes: - ./src/:/usr/app/src/ #command: "/usr/app/.venv/bin/python3 /usr/app/src/simple_client.py" - command: "/usr/app/.venv/bin/python3 /usr/app/src/simple_client.py" + #command: "/usr/app/.venv/bin/python3 /usr/app/src/simple_client.py" + #command: "ls -lha /src" + #command: "java Inception"