Complete Docker Container redo, making updates possible.

- Through symlinks.

Refactored the set env variables function.
This commit is contained in:
Daan
2024-10-23 16:41:03 +02:00
parent 1cc321ddff
commit c837ab8693
3 changed files with 65 additions and 33 deletions

View File

@@ -24,7 +24,10 @@ ENV WGDASH=/opt/wireguarddashboard
# Removing the Linux Image package to preserve space on the image, for this reason also deleting apt lists, to be able to install packages: run apt update.
# Doing WireGuard Dashboard installation measures. Modify the git clone command to get the preferred version, with a specific branch for example.
RUN mkdir -p /setup/conf && mkdir /setup/app && mkdir ${WGDASH}
RUN mkdir -p /setup/conf \
&& mkdir /setup/app \
&& mkdir ${WGDASH} \
&& mkdir /data
COPY ./src /setup/app/src
# Set the volume to be used for WireGuard configuration persistency.