-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
38 lines (29 loc) · 1.02 KB
/
Copy pathDockerfile
File metadata and controls
38 lines (29 loc) · 1.02 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
37
38
# Conduit - Psiphon inproxy node (Debian)
#
# Build with embedded config:
# make docker PSIPHON_CONFIG=psiphon_config.json
#
# Or build image only (after binaries exist in dist/):
# docker build -t conduit:latest -f Dockerfile .
#
# Run with persistent data volume:
# docker run -d --name conduit \
# -v conduit-data:/home/conduit/data \
# --restart unless-stopped \
# conduit:latest
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"]