Compare commits

...

5 commits

Author SHA1 Message Date
hand7s
706009ad4a
Merge ef89bc607c into ddc2cfacb9 2024-12-04 08:41:24 +00:00
s0me1newithhand7s
ef89bc607c modified: Dockerfile 2024-12-04 11:41:16 +03:00
Sanaei
0512949f23
Merge branch 'main' into main 2024-12-03 22:43:11 +01:00
hand7s
9dd6fc7864
Merge branch 'MHSanaei:main' into main 2024-11-29 16:46:48 +00:00
s0me1newithhand7s
81ad39abc1 modified: DockerEntrypoint.sh
modified:   DockerInit.sh
	modified:   Dockerfile
	modified:   install.sh
	modified:   x-ui.sh
2024-11-29 19:46:00 +03:00
5 changed files with 13 additions and 7 deletions

View file

@ -1,4 +1,4 @@
#!/bin/sh
#!/usr/bin/env sh
# Start fail2ban
fail2ban-client -x start

View file

@ -1,4 +1,4 @@
#!/bin/sh
#!/usr/bin/env sh
case $1 in
amd64)
ARCH="64"

View file

@ -2,6 +2,8 @@
# Stage: Builder
# ========================================================
FROM golang:1.23-alpine AS builder
# because builder doesn't matter as i've tested recently
WORKDIR /app
ARG TARGETARCH
@ -21,11 +23,15 @@ RUN ./DockerInit.sh "$TARGETARCH"
# ========================================================
# Stage: Final Image of 3x-ui
# ========================================================
FROM alpine
FROM ubuntu:devel
# while being techniacally newer "devel" image proven to be more stable and more lightweight
ENV TZ=Asia/Tehran
WORKDIR /app
RUN apk add --no-cache --update \
RUN apt-get update -y
RUN apt-get install -y \
--no-install-recommends \
# to make image less "bloated" due of way apt works
ca-certificates \
tzdata \
fail2ban \

View file

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
red='\033[0;31m'
green='\033[0;32m'

View file

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
red='\033[0;31m'
green='\033[0;32m'