-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile.client
More file actions
30 lines (23 loc) · 945 Bytes
/
Dockerfile.client
File metadata and controls
30 lines (23 loc) · 945 Bytes
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
FROM alpine:latest
# Install dependencies including iptables for network restrictions
RUN apk add --no-cache ca-certificates wget iptables
# Install chisel
RUN wget -q https://github.com/jpillora/chisel/releases/download/v1.11.3/chisel_1.11.3_linux_amd64.gz && \
gunzip chisel_1.11.3_linux_amd64.gz && \
mv chisel_1.11.3_linux_amd64 /usr/local/bin/chisel && \
chmod +x /usr/local/bin/chisel
# Create user
RUN addgroup -g 1000 broker && \
adduser -D -u 1000 -G broker broker
# Copy entrypoint
COPY client-entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh
# Note: Run with --cap-add=NET_ADMIN for network restrictions to work
LABEL description="ZeroPath Broker Client - Reverse proxy with access controls"
LABEL version="1.0"
LABEL vendor="ZeroPath Corp."
LABEL website="zeropath.com"
# Switch to non-root user for security
# Note: iptables rules require NET_ADMIN capability
USER broker
ENTRYPOINT ["/entrypoint.sh"]