feat(arm): build alfis from source for arm64 override
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
FROM alpine:3.20 AS code-cloner
|
||||
|
||||
WORKDIR /src
|
||||
RUN apk add --no-cache git
|
||||
RUN git clone --depth 1 https://github.com/Revertron/Alfis.git
|
||||
|
||||
FROM rust:slim-bullseye AS builder
|
||||
|
||||
RUN apt-get update \
|
||||
&& apt-get install -y --no-install-recommends pkg-config libcairo2-dev ca-certificates \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
COPY --from=code-cloner /src/Alfis /src
|
||||
WORKDIR /src
|
||||
RUN cargo build --release --no-default-features --features="doh"
|
||||
|
||||
FROM debian:bullseye-slim
|
||||
|
||||
RUN apt-get update \
|
||||
&& apt-get install -y --no-install-recommends ca-certificates libcairo2 \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
COPY --from=builder /src/target/release/alfis /alfis
|
||||
COPY --from=builder /src/alfis.toml /storage/alfis.toml
|
||||
|
||||
EXPOSE 4244/tcp
|
||||
EXPOSE 53/tcp
|
||||
EXPOSE 53/udp
|
||||
|
||||
WORKDIR /storage
|
||||
VOLUME ["/storage"]
|
||||
CMD ["/alfis", "-c", "/storage/alfis.toml"]
|
||||
+10
-3
@@ -17,12 +17,22 @@ services:
|
||||
platform: linux/arm64
|
||||
|
||||
i2pd_yggdrasil:
|
||||
build:
|
||||
context: ./i2pd_yggdrasil_docker/src
|
||||
dockerfile: Dockerfile
|
||||
platform: linux/arm64
|
||||
|
||||
tor_yggdrasil:
|
||||
build:
|
||||
context: ./tor_yggdrasil_docker
|
||||
dockerfile: Dockerfile
|
||||
platform: linux/arm64
|
||||
|
||||
alfis:
|
||||
image: darkproxy-alfis:arm64
|
||||
build:
|
||||
context: ./alfis_arm
|
||||
dockerfile: Dockerfile
|
||||
platform: linux/arm64
|
||||
|
||||
coredns:
|
||||
@@ -37,7 +47,4 @@ services:
|
||||
emc:
|
||||
platform: linux/arm64
|
||||
|
||||
geth:
|
||||
platform: linux/arm64
|
||||
|
||||
# networks, volumes, and secrets are inherited from the base compose file
|
||||
|
||||
Reference in New Issue
Block a user