add docker support

This commit is contained in:
Athou
2023-04-24 20:24:20 +02:00
parent 866fe56dd2
commit 4f625d8ed5
4 changed files with 41 additions and 3 deletions

12
Dockerfile Normal file
View File

@@ -0,0 +1,12 @@
FROM openjdk:17-alpine
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
EXPOSE 8082
CMD ["java", "-Djava.net.preferIPv4Stack=true", "-jar", "commafeed.jar", "server", "config.yml"]