diff --git a/Dockerfile b/Dockerfile index 007b3b0..01cb3cc 100644 --- a/Dockerfile +++ b/Dockerfile @@ -48,6 +48,7 @@ LABEL \ org.opencontainers.image.source "https://github.com/bugfest/tor-docker" WORKDIR /app +ENV HOME=/app RUN apk add --update --no-cache \ libevent \ diff --git a/Dockerfile.quick b/Dockerfile.quick index c919309..38d0ef0 100644 --- a/Dockerfile.quick +++ b/Dockerfile.quick @@ -5,7 +5,7 @@ FROM --platform=$BUILDPLATFORM golang:1.20-alpine as obfs-builder ARG OBFS_VERSION="obfs4proxy-0.0.14-tor2" RUN apk add --update --no-cache git && \ - git clone https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/obfs4.git --depth 1 --branch $OBFS_VERSION /obfs + git clone https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/obfs4.git --depth 1 --branch "${OBFS_VERSION}" /obfs # Build obfs RUN mkdir /out @@ -16,12 +16,13 @@ RUN --mount=type=cache,target=/root/.cache/go-build \ CGO_ENABLED=0 GOOS=$TARGETOS GOARCH=$TARGETARCH go build -o /out/obfs4proxy ./obfs4proxy # Tor runner -FROM --platform=$TARGETPLATFORM docker.io/library/alpine:$ALPINE_VERSION as runner +FROM --platform=$TARGETPLATFORM docker.io/library/alpine:${ALPINE_VERSION} as runner LABEL \ org.opencontainers.image.source "https://github.com/bugfest/tor-docker" WORKDIR /app +ENV HOME=/app ARG TOR_VERSION="0.4.8.7" RUN apk add --update --no-cache \