mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2025-04-19 21:42:24 +00:00
Compare commits
5 commits
90f3081388
...
706009ad4a
Author | SHA1 | Date | |
---|---|---|---|
![]() |
706009ad4a | ||
![]() |
ef89bc607c | ||
![]() |
0512949f23 | ||
![]() |
9dd6fc7864 | ||
![]() |
81ad39abc1 |
5 changed files with 13 additions and 7 deletions
|
@ -1,4 +1,4 @@
|
|||
#!/bin/sh
|
||||
#!/usr/bin/env sh
|
||||
|
||||
# Start fail2ban
|
||||
fail2ban-client -x start
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#!/bin/sh
|
||||
#!/usr/bin/env sh
|
||||
case $1 in
|
||||
amd64)
|
||||
ARCH="64"
|
||||
|
|
12
Dockerfile
12
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 \
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#!/bin/bash
|
||||
#!/usr/bin/env bash
|
||||
|
||||
red='\033[0;31m'
|
||||
green='\033[0;32m'
|
||||
|
|
2
x-ui.sh
2
x-ui.sh
|
@ -1,4 +1,4 @@
|
|||
#!/bin/bash
|
||||
#!/usr/bin/env bash
|
||||
|
||||
red='\033[0;31m'
|
||||
green='\033[0;32m'
|
||||
|
|
Loading…
Reference in a new issue