Skip to content

Commit

Permalink
Add java 20
Browse files Browse the repository at this point in the history
  • Loading branch information
galushko committed Oct 11, 2023
1 parent d495a2f commit eeceebf
Showing 1 changed file with 15 additions and 13 deletions.
28 changes: 15 additions & 13 deletions config/dockerfiles/Dockerfile-torrent
Original file line number Diff line number Diff line change
@@ -1,21 +1,23 @@
FROM openjdk:20-ea-35-jdk-slim

VOLUME ["/sys/fs/cgroup"]
RUN apt-get update
RUN apt-get -y install transmission-daemon transmission-cli openrc
RUN mkdir -p /home/media/torrent/downloads
RUN mkdir -p /home/media/torrent/complete
RUN mkdir -p /home/media/torrent/torrent_files
RUN mkdir -p /home/app
RUN chmod 777 -R /home/app
RUN chmod 777 -R /home/media
COPY ./src/main/resources/config /etc/transmission-daemon
COPY ./src/main/resources/commands /home/app
COPY ./src/main/resources/scripts /home/app
COPY torrent-*.jar /home/app/app.jar
RUN mkdir -p /home/media/torrent/downloads && \
mkdir -p /home/media/torrent/complete && \
mkdir -p /home/media/torrent/torrent_files && \
mkdir -p /home/app

RUN chmod +X /home/app/*.sh
VOLUME ["/sys/fs/cgroup"]
COPY ./src/main/resources/config /etc/transmission-daemon
RUN openrc
RUN touch /run/openrc/softlevel

ENTRYPOINT ["sh", "/home/app/run.sh"]
COPY torrent-*.jar /home/app/app.jar
COPY ./src/main/resources/log_properties /home/app
COPY ./src/main/resources/scripts /home/app
COPY ./src/main/resources/commands /home/app
RUN chmod 777 -R /home/app && \
chmod 777 -R /home/media
RUN chmod +X /home/app/*.sh

ENTRYPOINT ["sh", "/home/app/run.sh"]

0 comments on commit eeceebf

Please sign in to comment.