diff options
| author | Ho3ein <ho3ein.sanaei@gmail.com> | 2024-02-04 02:04:39 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-02-04 02:04:39 +0300 |
| commit | aa40016ec82cac86d0e1a1a793dcaeaf1d540b0d (patch) | |
| tree | 5e9b77673368f2e2d1f9e882a9eb58ebb187fe81 /Dockerfile | |
| parent | dc49304aa5d959767f771b8b161e23b5d8cd6ec4 (diff) | |
| parent | a6742f395aa65201d56b456f97e9db39c82910ce (diff) | |
Merge branch 'main' into main
Diffstat (limited to 'Dockerfile')
| -rw-r--r-- | Dockerfile | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -28,12 +28,14 @@ WORKDIR /app RUN apk add --no-cache --update \ ca-certificates \ tzdata \ - fail2ban + fail2ban \ + bash 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 \ && cp /etc/fail2ban/jail.conf /etc/fail2ban/jail.local \ @@ -47,4 +49,5 @@ RUN chmod +x \ /usr/bin/x-ui VOLUME [ "/etc/x-ui" ] +CMD [ "./x-ui" ] ENTRYPOINT [ "/app/DockerEntrypoint.sh" ] |
