mirror of
https://github.com/teddysun/across.git
synced 2025-01-18 13:59:35 +08:00
Update Dockerfile
This commit is contained in:
parent
54072da2d9
commit
168062f2de
@ -1,5 +1,5 @@
|
|||||||
# Dockerfile for Brook based alpine
|
# Dockerfile for Brook based alpine
|
||||||
# Copyright (C) 2019 - 2020 Teddysun <i@teddysun.com>
|
# Copyright (C) 2019 - 2024 Teddysun <i@teddysun.com>
|
||||||
# Reference URL:
|
# Reference URL:
|
||||||
# https://github.com/txthinking/brook
|
# https://github.com/txthinking/brook
|
||||||
|
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
# Dockerfile for Brook based alpine
|
# Dockerfile for Brook based alpine
|
||||||
# Copyright (C) 2019 - 2020 Teddysun <i@teddysun.com>
|
# Copyright (C) 2019 - 2024 Teddysun <i@teddysun.com>
|
||||||
# Reference URL:
|
# Reference URL:
|
||||||
# https://github.com/txthinking/brook
|
# https://github.com/txthinking/brook
|
||||||
|
|
||||||
FROM --platform=${TARGETPLATFORM} alpine:latest
|
FROM alpine:latest
|
||||||
LABEL maintainer="Teddysun <i@teddysun.com>"
|
LABEL maintainer="Teddysun <i@teddysun.com>"
|
||||||
|
|
||||||
ARG TARGETPLATFORM
|
ARG TARGETPLATFORM
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
# Dockerfile for caddy v1.0.5 based alpine
|
# Dockerfile for caddy v1.0.5 based alpine
|
||||||
# Copyright (C) 2021 Teddysun <i@teddysun.com>
|
# Copyright (C) 2021 - 2024 Teddysun <i@teddysun.com>
|
||||||
# Reference URL:
|
# Reference URL:
|
||||||
# https://github.com/caddyserver/caddy
|
# https://github.com/caddyserver/caddy
|
||||||
# https://github.com/caddyserver/forwardproxy
|
# https://github.com/caddyserver/forwardproxy
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
# Dockerfile for caddy v1.0.5 based alpine
|
# Dockerfile for caddy v1.0.5 based alpine
|
||||||
# Copyright (C) 2021 Teddysun <i@teddysun.com>
|
# Copyright (C) 2021 - 2024 Teddysun <i@teddysun.com>
|
||||||
# Reference URL:
|
# Reference URL:
|
||||||
# https://github.com/caddyserver/caddy
|
# https://github.com/caddyserver/caddy
|
||||||
# https://github.com/caddyserver/forwardproxy
|
# https://github.com/caddyserver/forwardproxy
|
||||||
|
|
||||||
FROM --platform=${TARGETPLATFORM} alpine:3.14
|
FROM alpine:3.14
|
||||||
LABEL maintainer="Teddysun <i@teddysun.com>"
|
LABEL maintainer="Teddysun <i@teddysun.com>"
|
||||||
|
|
||||||
ARG TARGETPLATFORM
|
ARG TARGETPLATFORM
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
# Dockerfile for hysteria based alpine
|
# Dockerfile for hysteria based alpine
|
||||||
# Copyright (C) 2023 Teddysun <i@teddysun.com>
|
# Copyright (C) 2023 - 2024 Teddysun <i@teddysun.com>
|
||||||
# Reference URL:
|
# Reference URL:
|
||||||
# https://github.com/HyNetwork/hysteria
|
# https://github.com/HyNetwork/hysteria
|
||||||
|
|
||||||
FROM --platform=${TARGETPLATFORM} alpine:latest
|
FROM alpine:latest
|
||||||
LABEL maintainer="Teddysun <i@teddysun.com>"
|
LABEL maintainer="Teddysun <i@teddysun.com>"
|
||||||
|
|
||||||
ARG TARGETPLATFORM
|
ARG TARGETPLATFORM
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
# Dockerfile for KMS Server
|
# Dockerfile for KMS Server
|
||||||
# Copyright (C) 2018 - 2020 Teddysun <i@teddysun.com>
|
# Copyright (C) 2018 - 2024 Teddysun <i@teddysun.com>
|
||||||
# Reference URL:
|
# Reference URL:
|
||||||
# https://github.com/Wind4/vlmcsd
|
# https://github.com/Wind4/vlmcsd
|
||||||
|
|
||||||
|
@ -3,14 +3,14 @@
|
|||||||
# Reference URL:
|
# Reference URL:
|
||||||
# https://github.com/Wind4/vlmcsd
|
# https://github.com/Wind4/vlmcsd
|
||||||
|
|
||||||
FROM --platform=$TARGETPLATFORM alpine:latest AS builder
|
FROM alpine:latest AS builder
|
||||||
WORKDIR /root
|
WORKDIR /root
|
||||||
RUN apk add --no-cache git make build-base && \
|
RUN apk add --no-cache git make build-base && \
|
||||||
git clone --branch master --single-branch https://github.com/Wind4/vlmcsd.git && \
|
git clone --branch master --single-branch https://github.com/Wind4/vlmcsd.git && \
|
||||||
cd vlmcsd/ && \
|
cd vlmcsd/ && \
|
||||||
make
|
make
|
||||||
|
|
||||||
FROM --platform=$TARGETPLATFORM alpine:latest
|
FROM alpine:latest
|
||||||
LABEL maintainer="Teddysun <i@teddysun.com>"
|
LABEL maintainer="Teddysun <i@teddysun.com>"
|
||||||
|
|
||||||
COPY --from=builder /root/vlmcsd/bin/vlmcsd /usr/bin/vlmcsd
|
COPY --from=builder /root/vlmcsd/bin/vlmcsd /usr/bin/vlmcsd
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
# Dockerfile for build RPM packages.
|
# Dockerfile for build RPM packages.
|
||||||
# Copyright (C) 2023 Teddysun <i@teddysun.com>
|
# Copyright (C) 2023 Teddysun <i@teddysun.com>
|
||||||
|
|
||||||
FROM --platform=${TARGETPLATFORM} fedora:37
|
FROM fedora:37
|
||||||
LABEL maintainer="Teddysun <i@teddysun.com>"
|
LABEL maintainer="Teddysun <i@teddysun.com>"
|
||||||
|
|
||||||
RUN dnf install -y yum-utils && \
|
RUN dnf install -y yum-utils && \
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
# Dockerfile for build RPM packages.
|
# Dockerfile for build RPM packages.
|
||||||
# Copyright (C) 2023 Teddysun <i@teddysun.com>
|
# Copyright (C) 2023 Teddysun <i@teddysun.com>
|
||||||
|
|
||||||
FROM --platform=${TARGETPLATFORM} fedora:38
|
FROM fedora:38
|
||||||
LABEL maintainer="Teddysun <i@teddysun.com>"
|
LABEL maintainer="Teddysun <i@teddysun.com>"
|
||||||
|
|
||||||
RUN dnf install -y yum-utils && \
|
RUN dnf install -y yum-utils && \
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
# Dockerfile for build RPM packages.
|
# Dockerfile for build RPM packages.
|
||||||
# Copyright (C) 2023 Teddysun <i@teddysun.com>
|
# Copyright (C) 2023 Teddysun <i@teddysun.com>
|
||||||
|
|
||||||
FROM --platform=${TARGETPLATFORM} fedora:39
|
FROM fedora:39
|
||||||
LABEL maintainer="Teddysun <i@teddysun.com>"
|
LABEL maintainer="Teddysun <i@teddysun.com>"
|
||||||
|
|
||||||
RUN dnf install -y yum-utils && \
|
RUN dnf install -y yum-utils && \
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
# Dockerfile for build RPM packages.
|
# Dockerfile for build RPM packages.
|
||||||
# Copyright (C) 2024 Teddysun <i@teddysun.com>
|
# Copyright (C) 2024 Teddysun <i@teddysun.com>
|
||||||
|
|
||||||
FROM --platform=${TARGETPLATFORM} fedora:40
|
FROM fedora:40
|
||||||
LABEL maintainer="Teddysun <i@teddysun.com>"
|
LABEL maintainer="Teddysun <i@teddysun.com>"
|
||||||
|
|
||||||
RUN dnf install -y yum-utils && \
|
RUN dnf install -y yum-utils && \
|
||||||
|
37
docker/rpmbuild/Dockerfile.fedora41
Normal file
37
docker/rpmbuild/Dockerfile.fedora41
Normal file
@ -0,0 +1,37 @@
|
|||||||
|
# Dockerfile for build RPM packages.
|
||||||
|
# Copyright (C) 2024 Teddysun <i@teddysun.com>
|
||||||
|
|
||||||
|
FROM fedora:41
|
||||||
|
LABEL maintainer="Teddysun <i@teddysun.com>"
|
||||||
|
|
||||||
|
RUN dnf install -y yum-utils && \
|
||||||
|
dnf install -y tar wget git tree gcc gcc-c++ vim automake \
|
||||||
|
sudo net-tools make cmake zstd libzstd chkconfig libtool \
|
||||||
|
bash coreutils diffutils patch ca-certificates pcre-devel \
|
||||||
|
rpm-build rpm-devel rpmlint rpmdevtools ncurses which procps \
|
||||||
|
asciidoc audit-libs-devel binutils-devel flex jq gettext mbedtls-devel \
|
||||||
|
libcap-devel newt-devel pciutils-devel perl-generators c-ares-devel libev-devel \
|
||||||
|
python3 python3-devel python3-docutils rsync xmlto bc bison libsodium-devel \
|
||||||
|
java-devel ncurses-devel numactl-devel openssl-devel perl-devel \
|
||||||
|
bpftool dwarves gcc-plugin-devel glibc-static hmaccalc kernel-rpm-macros \
|
||||||
|
libbabeltrace-devel libbpf-devel libcap-ng-devel libnl3-devel libtraceevent-devel \
|
||||||
|
elfutils-devel xz-devel perl-ExtUtils-Embed && \
|
||||||
|
dnf clean all && rm -rf /var/cache/dnf /var/lib/rpm/__db*
|
||||||
|
|
||||||
|
RUN useradd builder -u 1000 -m -G users,wheel && \
|
||||||
|
echo "builder ALL=(ALL:ALL) NOPASSWD:ALL" >> /etc/sudoers && \
|
||||||
|
echo "# macros" > /home/builder/.rpmmacros && \
|
||||||
|
echo "%_topdir /home/builder/rpmbuild" >> /home/builder/.rpmmacros && \
|
||||||
|
echo "%_sourcedir %{_topdir}" >> /home/builder/.rpmmacros && \
|
||||||
|
echo "%_builddir %{_topdir}" >> /home/builder/.rpmmacros && \
|
||||||
|
echo "%_specdir %{_topdir}" >> /home/builder/.rpmmacros && \
|
||||||
|
echo "%_rpmdir %{_topdir}" >> /home/builder/.rpmmacros && \
|
||||||
|
echo "%_srcrpmdir %{_topdir}" >> /home/builder/.rpmmacros && \
|
||||||
|
echo "set enable-bracketed-paste off" >> /etc/inputrc && \
|
||||||
|
mkdir -p /home/builder/rpmbuild && \
|
||||||
|
chown -R builder /home/builder
|
||||||
|
|
||||||
|
USER builder
|
||||||
|
VOLUME /home/builder
|
||||||
|
WORKDIR /home/builder/rpmbuild
|
||||||
|
CMD ["/bin/bash"]
|
@ -1,7 +1,7 @@
|
|||||||
# Dockerfile for build RPM packages.
|
# Dockerfile for build RPM packages.
|
||||||
# Copyright (C) 2021 - 2022 Teddysun <i@teddysun.com>
|
# Copyright (C) 2021 - 2022 Teddysun <i@teddysun.com>
|
||||||
|
|
||||||
FROM --platform=${TARGETPLATFORM} centos:7
|
FROM centos:7
|
||||||
LABEL maintainer="Teddysun <i@teddysun.com>"
|
LABEL maintainer="Teddysun <i@teddysun.com>"
|
||||||
|
|
||||||
RUN yum install -y yum-utils epel-release centos-release-scl-rh && \
|
RUN yum install -y yum-utils epel-release centos-release-scl-rh && \
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
# Dockerfile for build RPM packages.
|
# Dockerfile for build RPM packages.
|
||||||
# Copyright (C) 2021 - 2022 Teddysun <i@teddysun.com>
|
# Copyright (C) 2021 - 2024 Teddysun <i@teddysun.com>
|
||||||
|
|
||||||
FROM --platform=${TARGETPLATFORM} rockylinux:8
|
FROM rockylinux:8
|
||||||
LABEL maintainer="Teddysun <i@teddysun.com>"
|
LABEL maintainer="Teddysun <i@teddysun.com>"
|
||||||
|
|
||||||
RUN yum install -y yum-utils epel-release && \
|
RUN yum install -y yum-utils epel-release && \
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
# Dockerfile for build RPM packages.
|
# Dockerfile for build RPM packages.
|
||||||
# Copyright (C) 2022 Teddysun <i@teddysun.com>
|
# Copyright (C) 2022 - 2024 Teddysun <i@teddysun.com>
|
||||||
|
|
||||||
FROM --platform=${TARGETPLATFORM} rockylinux:9
|
FROM rockylinux:9
|
||||||
LABEL maintainer="Teddysun <i@teddysun.com>"
|
LABEL maintainer="Teddysun <i@teddysun.com>"
|
||||||
|
|
||||||
RUN yum install -y yum-utils epel-release && \
|
RUN yum install -y yum-utils epel-release && \
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
# Dockerfile for trojan-go based alpine
|
# Dockerfile for trojan-go based alpine
|
||||||
# Copyright (C) 2019 - 2021 Teddysun <i@teddysun.com>
|
# Copyright (C) 2019 - 2024 Teddysun <i@teddysun.com>
|
||||||
# Reference URL:
|
# Reference URL:
|
||||||
# https://github.com/p4gefau1t/trojan-go
|
# https://github.com/p4gefau1t/trojan-go
|
||||||
# https://github.com/v2fly/v2ray-core
|
# https://github.com/v2fly/v2ray-core
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
# Dockerfile for trojan-go based alpine
|
# Dockerfile for trojan-go based alpine
|
||||||
# Copyright (C) 2019 - 2023 Teddysun <i@teddysun.com>
|
# Copyright (C) 2019 - 2024 Teddysun <i@teddysun.com>
|
||||||
# Reference URL:
|
# Reference URL:
|
||||||
# https://github.com/p4gefau1t/trojan-go
|
# https://github.com/p4gefau1t/trojan-go
|
||||||
# https://github.com/v2fly/v2ray-core
|
# https://github.com/v2fly/v2ray-core
|
||||||
@ -7,7 +7,7 @@
|
|||||||
# https://github.com/v2fly/domain-list-community
|
# https://github.com/v2fly/domain-list-community
|
||||||
# https://github.com/Potterli20/trojan-go-fork
|
# https://github.com/Potterli20/trojan-go-fork
|
||||||
|
|
||||||
FROM --platform=${TARGETPLATFORM} alpine:latest
|
FROM alpine:latest
|
||||||
LABEL maintainer="Teddysun <i@teddysun.com>"
|
LABEL maintainer="Teddysun <i@teddysun.com>"
|
||||||
|
|
||||||
ARG TARGETPLATFORM
|
ARG TARGETPLATFORM
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
# Dockerfile for trojan based alpine
|
# Dockerfile for trojan based alpine
|
||||||
# Copyright (C) 2020 Teddysun <i@teddysun.com>
|
# Copyright (C) 2020 - 2024 Teddysun <i@teddysun.com>
|
||||||
# Reference URL:
|
# Reference URL:
|
||||||
# https://github.com/trojan-gfw/trojan
|
# https://github.com/trojan-gfw/trojan
|
||||||
# https://trojan-gfw.github.io/trojan/
|
# https://trojan-gfw.github.io/trojan/
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
# Dockerfile for trojan based alpine
|
# Dockerfile for trojan based alpine
|
||||||
# Copyright (C) 2020 Teddysun <i@teddysun.com>
|
# Copyright (C) 2020 - 2024 Teddysun <i@teddysun.com>
|
||||||
# Reference URL:
|
# Reference URL:
|
||||||
# https://github.com/trojan-gfw/trojan
|
# https://github.com/trojan-gfw/trojan
|
||||||
# https://trojan-gfw.github.io/trojan/
|
# https://trojan-gfw.github.io/trojan/
|
||||||
|
|
||||||
FROM --platform=${TARGETPLATFORM} alpine:latest AS builder
|
FROM alpine:latest AS builder
|
||||||
WORKDIR /root
|
WORKDIR /root
|
||||||
RUN set -ex \
|
RUN set -ex \
|
||||||
&& VERSION="$(wget --no-check-certificate -qO- https://api.github.com/repos/trojan-gfw/trojan/tags | grep 'name' | cut -d\" -f4 | head -1)" \
|
&& VERSION="$(wget --no-check-certificate -qO- https://api.github.com/repos/trojan-gfw/trojan/tags | grep 'name' | cut -d\" -f4 | head -1)" \
|
||||||
@ -15,7 +15,7 @@ RUN set -ex \
|
|||||||
&& make \
|
&& make \
|
||||||
&& strip -s trojan
|
&& strip -s trojan
|
||||||
|
|
||||||
FROM --platform=${TARGETPLATFORM} alpine:latest
|
FROM alpine:latest
|
||||||
LABEL maintainer="Teddysun <i@teddysun.com>"
|
LABEL maintainer="Teddysun <i@teddysun.com>"
|
||||||
|
|
||||||
RUN set -ex \
|
RUN set -ex \
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
# Dockerfile for v2ray based alpine
|
# Dockerfile for v2ray based alpine
|
||||||
# Copyright (C) 2019 - 2021 Teddysun <i@teddysun.com>
|
# Copyright (C) 2019 - 2024 Teddysun <i@teddysun.com>
|
||||||
# Reference URL:
|
# Reference URL:
|
||||||
# https://github.com/v2fly/v2ray-core
|
# https://github.com/v2fly/v2ray-core
|
||||||
# https://github.com/v2fly/geoip
|
# https://github.com/v2fly/geoip
|
||||||
|
@ -1,11 +1,11 @@
|
|||||||
# Dockerfile for v2ray based alpine
|
# Dockerfile for v2ray based alpine
|
||||||
# Copyright (C) 2019 - 2021 Teddysun <i@teddysun.com>
|
# Copyright (C) 2019 - 2024 Teddysun <i@teddysun.com>
|
||||||
# Reference URL:
|
# Reference URL:
|
||||||
# https://github.com/v2fly/v2ray-core
|
# https://github.com/v2fly/v2ray-core
|
||||||
# https://github.com/v2fly/geoip
|
# https://github.com/v2fly/geoip
|
||||||
# https://github.com/v2fly/domain-list-community
|
# https://github.com/v2fly/domain-list-community
|
||||||
|
|
||||||
FROM --platform=${TARGETPLATFORM} alpine:latest
|
FROM alpine:latest
|
||||||
LABEL maintainer="Teddysun <i@teddysun.com>"
|
LABEL maintainer="Teddysun <i@teddysun.com>"
|
||||||
|
|
||||||
ARG TARGETPLATFORM
|
ARG TARGETPLATFORM
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
# Dockerfile for xray based alpine
|
# Dockerfile for xray based alpine
|
||||||
# Copyright (C) 2019 - 2021 Teddysun <i@teddysun.com>
|
# Copyright (C) 2019 - 2024 Teddysun <i@teddysun.com>
|
||||||
# Reference URL:
|
# Reference URL:
|
||||||
# https://github.com/XTLS/Xray-core
|
# https://github.com/XTLS/Xray-core
|
||||||
# https://github.com/v2fly/v2ray-core
|
# https://github.com/v2fly/v2ray-core
|
||||||
|
@ -1,12 +1,12 @@
|
|||||||
# Dockerfile for xray based alpine
|
# Dockerfile for xray based alpine
|
||||||
# Copyright (C) 2019 - 2021 Teddysun <i@teddysun.com>
|
# Copyright (C) 2019 - 2024 Teddysun <i@teddysun.com>
|
||||||
# Reference URL:
|
# Reference URL:
|
||||||
# https://github.com/XTLS/Xray-core
|
# https://github.com/XTLS/Xray-core
|
||||||
# https://github.com/v2fly/v2ray-core
|
# https://github.com/v2fly/v2ray-core
|
||||||
# https://github.com/v2fly/geoip
|
# https://github.com/v2fly/geoip
|
||||||
# https://github.com/v2fly/domain-list-community
|
# https://github.com/v2fly/domain-list-community
|
||||||
|
|
||||||
FROM --platform=${TARGETPLATFORM} alpine:latest
|
FROM alpine:latest
|
||||||
LABEL maintainer="Teddysun <i@teddysun.com>"
|
LABEL maintainer="Teddysun <i@teddysun.com>"
|
||||||
|
|
||||||
ARG TARGETPLATFORM
|
ARG TARGETPLATFORM
|
||||||
|
@ -40,9 +40,7 @@ A sample in JSON like below:
|
|||||||
"settings": {
|
"settings": {
|
||||||
"clients": [
|
"clients": [
|
||||||
{
|
{
|
||||||
"id": "1eb6e917-774b-4a84-aff6-b058577c60a5",
|
"id": "1eb6e917-774b-4a84-aff6-b058577c60a5"
|
||||||
"level": 1,
|
|
||||||
"alterId": 64
|
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user