forked from Psiphon-Inc/conduit
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
36 lines (27 loc) · 1.09 KB
/
Dockerfile
File metadata and controls
36 lines (27 loc) · 1.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# Conduit - Psiphon inproxy node
#
# Build:
# docker build -t conduit --build-arg PSIPHON_CONFIG=psiphon_config.json -f Dockerfile.embedded .
#
# Run (with persistent data volume - recommended):
# docker run -d --name conduit -v conduit-data:/home/conduit/data --restart unless-stopped conduit
#
# The data volume stores your proxy's private key. The Psiphon broker tracks
# proxy reputation by key, so preserving it ensures you continue receiving
# client connections.
FROM debian:bookworm-slim
ARG TARGETARCH
RUN apt-get update && apt-get install -y --no-install-recommends \
ca-certificates \
&& rm -rf /var/lib/apt/lists/*
COPY dist/conduit-linux-${TARGETARCH} /usr/local/bin/conduit
COPY dist/conduit-monitor-linux-${TARGETARCH} /usr/local/bin/conduit-monitor
RUN chmod +x /usr/local/bin/conduit /usr/local/bin/conduit-monitor
# Create non-root user with home directory
RUN useradd -r -u 1000 -m conduit
USER conduit
WORKDIR /home/conduit
# Create data directory owned by conduit user
RUN mkdir -p /home/conduit/data
ENTRYPOINT ["conduit"]
CMD ["start", "--data-dir", "/home/conduit/data"]