Commit b0058fff authored by j.hoerdt's avatar j.hoerdt
Browse files

move apt commands to the top

to slightly optimize Dockerfile
parent 45b282bd
......@@ -3,10 +3,9 @@ WORKDIR /home/gradle/sensor2graph
COPY . .
RUN gradle jar
FROM openjdk:14-buster
RUN apt update && apt install -y tar zstd
WORKDIR /app
ENTRYPOINT ["java", "-Djava.util.logging.config.file=logging.properties", "-jar", "/home/gradle/sensor2graph/sensor2graph.jar"]
RUN mkdir logs
COPY --from=compile /home/gradle/sensor2graph/build/libs/sensor2graph.jar /home/gradle/sensor2graph/
COPY --from=compile /home/gradle/sensor2graph/logging.properties /home/gradle/sensor2graph/graphdb.gwdg.de.pem /app/
RUN apt update
RUN apt install -y tar zstd
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment