This commit is contained in:
hand7s 2024-12-04 13:50:24 +01:00 committed by GitHub
commit 633c52809f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
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

@ -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 \

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'