Spaces:
Paused
Paused
Commit ·
08d4594
1
Parent(s): fca6766
Update Dockerfile
Browse files- Dockerfile +1 -8
Dockerfile
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
FROM debian:bullseye-slim
|
| 2 |
|
| 3 |
# Install necessary packages and clean up
|
| 4 |
-
RUN apt-get update && apt-get install -y dos2unix wget curl tar bash ca-certificates
|
| 5 |
|
| 6 |
# Install wgcf
|
| 7 |
RUN wget -O /usr/local/bin/wgcf https://github.com/ViRb3/wgcf/releases/download/v2.2.29/wgcf_2.2.29_linux_amd64 && \
|
|
@@ -41,13 +41,6 @@ RUN chmod 777 /config
|
|
| 41 |
# Expose the x-ui port
|
| 42 |
EXPOSE 2023
|
| 43 |
|
| 44 |
-
# Copy sync script and crontab
|
| 45 |
-
COPY sync.sh /usr/local/bin/sync.sh
|
| 46 |
-
RUN chmod +x /usr/local/bin/sync.sh
|
| 47 |
-
COPY crontab /etc/cron.d/sync-cron
|
| 48 |
-
RUN chmod 0644 /etc/cron.d/sync-cron && crontab /etc/cron.d/sync-cron
|
| 49 |
-
|
| 50 |
# Set the entrypoint to our startup script
|
| 51 |
RUN chmod -R 777 /usr/local/x-ui/
|
| 52 |
ENTRYPOINT ["/bin/bash", "-c", "/usr/local/bin/start.sh"]
|
| 53 |
-
# Trivial change to force rebuild 6
|
|
|
|
| 1 |
FROM debian:bullseye-slim
|
| 2 |
|
| 3 |
# Install necessary packages and clean up
|
| 4 |
+
RUN apt-get update && apt-get install -y dos2unix wget curl tar bash ca-certificates --no-install-recommends && rm -rf /var/lib/apt/lists/*
|
| 5 |
|
| 6 |
# Install wgcf
|
| 7 |
RUN wget -O /usr/local/bin/wgcf https://github.com/ViRb3/wgcf/releases/download/v2.2.29/wgcf_2.2.29_linux_amd64 && \
|
|
|
|
| 41 |
# Expose the x-ui port
|
| 42 |
EXPOSE 2023
|
| 43 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 44 |
# Set the entrypoint to our startup script
|
| 45 |
RUN chmod -R 777 /usr/local/x-ui/
|
| 46 |
ENTRYPOINT ["/bin/bash", "-c", "/usr/local/bin/start.sh"]
|
|
|