diff --git a/DockerEntrypoint.sh b/DockerEntrypoint.sh index 9ebcd1d6..4da1c2e7 100644 --- a/DockerEntrypoint.sh +++ b/DockerEntrypoint.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env sh # Start fail2ban fail2ban-client -x start diff --git a/DockerInit.sh b/DockerInit.sh index 8ad568e2..50d4705e 100755 --- a/DockerInit.sh +++ b/DockerInit.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env sh case $1 in amd64) ARCH="64" diff --git a/Dockerfile b/Dockerfile index ac09b531..5c4e067b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,9 @@ # ======================================================== # Stage: Builder # ======================================================== -FROM golang:1.23-alpine AS 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 \ diff --git a/install.sh b/install.sh index c6c52000..a75ff8ee 100644 --- a/install.sh +++ b/install.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash red='\033[0;31m' green='\033[0;32m' diff --git a/x-ui.sh b/x-ui.sh index cb5ac099..0b7a5c01 100644 --- a/x-ui.sh +++ b/x-ui.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash red='\033[0;31m' green='\033[0;32m'