add x-ui script to docker

This commit is contained in:
Hamidreza Ghavami 2023-06-27 20:10:51 +04:30
parent 0385048b38
commit 4aa6052c9f
No known key found for this signature in database
GPG key ID: 402C6797325182D9

View file

@ -31,6 +31,7 @@ RUN apk add --no-cache --update \
COPY --from=builder /app/build/ /app/
COPY --from=builder /app/DockerEntrypoint.sh /app/
COPY --from=builder /app/x-ui.sh /usr/bin/x-ui
# Configure fail2ban
RUN rm -f /etc/fail2ban/jail.d/alpine-ssh.conf \
@ -39,7 +40,8 @@ RUN rm -f /etc/fail2ban/jail.d/alpine-ssh.conf \
RUN chmod +x \
/app/DockerEntrypoint.sh \
/app/x-ui
/app/x-ui \
/usr/bin/x-ui
VOLUME [ "/etc/x-ui" ]
ENTRYPOINT [ "/app/DockerEntrypoint.sh" ]