Skip to content

Commit

Permalink
add: env HOME
Browse files Browse the repository at this point in the history
  • Loading branch information
codekow committed Nov 4, 2023
1 parent b601eda commit f24b078
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down
5 changes: 3 additions & 2 deletions Dockerfile.quick
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 \
Expand Down

0 comments on commit f24b078

Please sign in to comment.