mirror of
https://github.com/donaldzou/WGDashboard.git
synced 2025-10-02 23:36:17 +00:00
feat(docker): clean up remaining commands
This commit is contained in:
@@ -60,8 +60,8 @@ FROM python:3.13-alpine
|
|||||||
LABEL maintainer="dselen@nerthus.nl"
|
LABEL maintainer="dselen@nerthus.nl"
|
||||||
|
|
||||||
RUN apk update && apk add --no-cache \
|
RUN apk update && apk add --no-cache \
|
||||||
iproute2 iptables bash curl wget unzip procps \
|
iproute2 iptables bash curl wget unzip procps \
|
||||||
sudo tzdata wireguard-tools openresolv
|
sudo tzdata wireguard-tools openresolv
|
||||||
|
|
||||||
COPY --from=awg-go /usr/bin/amneziawg-go /usr/bin/amneziawg-go
|
COPY --from=awg-go /usr/bin/amneziawg-go /usr/bin/amneziawg-go
|
||||||
COPY --from=awg-tools /workspace/awg-tools/src/wg /usr/bin/awg
|
COPY --from=awg-tools /workspace/awg-tools/src/wg /usr/bin/awg
|
||||||
@@ -82,9 +82,9 @@ ENV WGDASH=/opt/wgdashboard
|
|||||||
|
|
||||||
# Doing WireGuard Dashboard installation measures. Modify the git clone command to get the preferred version, with a specific branch for example.
|
# Doing WireGuard Dashboard installation measures. Modify the git clone command to get the preferred version, with a specific branch for example.
|
||||||
RUN mkdir /data \
|
RUN mkdir /data \
|
||||||
&& mkdir /configs \
|
&& mkdir /configs \
|
||||||
&& mkdir -p ${WGDASH}/src \
|
&& mkdir -p ${WGDASH}/src \
|
||||||
&& mkdir -p /etc/amnezia/amneziawg
|
&& mkdir -p /etc/amnezia/amneziawg
|
||||||
|
|
||||||
COPY ./src ${WGDASH}/src
|
COPY ./src ${WGDASH}/src
|
||||||
COPY --from=pip-builder /opt/wgdashboard/src/venv /opt/wgdashboard/src/venv
|
COPY --from=pip-builder /opt/wgdashboard/src/venv /opt/wgdashboard/src/venv
|
||||||
@@ -117,5 +117,4 @@ COPY ./docker/entrypoint.sh /entrypoint.sh
|
|||||||
EXPOSE 10086
|
EXPOSE 10086
|
||||||
WORKDIR $WGDASH/src
|
WORKDIR $WGDASH/src
|
||||||
|
|
||||||
#ENTRYPOINT ["sleep", "infinity"]
|
|
||||||
ENTRYPOINT ["/bin/bash", "/entrypoint.sh"]
|
ENTRYPOINT ["/bin/bash", "/entrypoint.sh"]
|
Reference in New Issue
Block a user