Skip to content

Commit

Permalink
reorder Dockerfile to put changing layers last
Browse files Browse the repository at this point in the history
  • Loading branch information
Athou committed Apr 27, 2023
1 parent 9a61ee7 commit 155c93d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
@@ -1,12 +1,12 @@
FROM eclipse-temurin:17-jre

EXPOSE 8082

RUN mkdir -p /commafeed/data
VOLUME /commafeed/data

ENV CF_SESSION_PATH=/commafeed/data/sessions

COPY commafeed-server/target/commafeed.jar .
COPY commafeed-server/config.yml.example config.yml
COPY commafeed-server/target/commafeed.jar .

EXPOSE 8082
CMD ["java", "-Djava.net.preferIPv4Stack=true", "-jar", "commafeed.jar", "server", "config.yml"]

0 comments on commit 155c93d

Please sign in to comment.