mirror of
https://github.com/Suwayomi/docker-tachidesk.git
synced 2025-12-10 06:42:12 +01:00
Overwrite server.conf settings only for provided env vars (#76)
* Overwrite server.conf settings only for provided env vars Currently on every start the whole server.conf file gets replaced which causes any changed settings during runtime to get lost * Fix readme formatting * Add "webUIEnabled" env variable This is the only setting that can not be changed via the UI * Remove default values from readme
This commit is contained in:
@@ -27,6 +27,12 @@ RUN apt-get update && \
|
||||
apt-get clean && \
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
|
||||
# install unzip to unzip the server-reference.conf from the jar
|
||||
RUN apt-get update && \
|
||||
apt-get -y install -y unzip && \
|
||||
apt-get clean && \
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
|
||||
# Create a user to run as
|
||||
RUN groupadd --gid 1000 suwayomi && \
|
||||
useradd --uid 1000 --gid suwayomi --no-log-init suwayomi && \
|
||||
@@ -36,8 +42,8 @@ WORKDIR /home/suwayomi
|
||||
|
||||
# Copy the app into the container
|
||||
RUN curl -s --create-dirs -L $TACHIDESK_RELEASE_DOWNLOAD_URL -o /home/suwayomi/startup/tachidesk_latest.jar
|
||||
COPY scripts/create_server_conf.sh /home/suwayomi/create_server_conf.sh
|
||||
COPY scripts/startup_script.sh /home/suwayomi/startup_script.sh
|
||||
COPY server.conf.template /home/suwayomi/server.conf.template
|
||||
|
||||
# update permissions of files.
|
||||
# we grant o+rwx because we need to allow non default UIDs (eg via docker run ... --user)
|
||||
|
||||
Reference in New Issue
Block a user