mirror of
https://github.com/itdoginfo/allow-domains.git
synced 2025-09-02 10:40:14 +00:00
Add xray-geosite to Dockerfile
This commit is contained in:
parent
d29f7d95b6
commit
f448f195a5
1 changed files with 14 additions and 0 deletions
14
Dockerfile
14
Dockerfile
|
@ -1,11 +1,25 @@
|
||||||
FROM ghcr.io/sagernet/sing-box:v1.10.7 AS sing-box
|
FROM ghcr.io/sagernet/sing-box:v1.10.7 AS sing-box
|
||||||
|
|
||||||
|
FROM golang:1.23.1-alpine3.20 AS golang
|
||||||
|
|
||||||
FROM python:3.10.16-alpine3.21
|
FROM python:3.10.16-alpine3.21
|
||||||
|
|
||||||
COPY --from=sing-box /usr/local/bin/sing-box /bin/sing-box
|
COPY --from=sing-box /usr/local/bin/sing-box /bin/sing-box
|
||||||
|
|
||||||
|
COPY --from=golang /usr/local/go /usr/local/go
|
||||||
|
|
||||||
|
ENV GOROOT=/usr/local/go
|
||||||
|
|
||||||
|
ENV PATH="/usr/local/go/bin:${PATH}"
|
||||||
|
|
||||||
RUN pip install --no-cache-dir tldextract
|
RUN pip install --no-cache-dir tldextract
|
||||||
|
|
||||||
|
COPY src/xray-geosite /app/xray-geosite
|
||||||
|
|
||||||
|
WORKDIR /app/xray-geosite
|
||||||
|
|
||||||
|
RUN go mod download
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
COPY convert.py /app/convert.py
|
COPY convert.py /app/convert.py
|
||||||
|
|
Loading…
Add table
Reference in a new issue