Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 13 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,20 @@
FROM debian:12
FROM debian:12-slim

RUN apt update && apt install -y ca-certificates curl
ARG USER=chproxy
ARG UID=1000
ARG GID=$UID

RUN groupadd -g $GID $USER && \
useradd -u $UID -g $GID -m $USER && \
apt update && \
apt install -y ca-certificates curl

COPY chproxy /

EXPOSE 9090

USER $USER
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If the following features are used:

  1. Autocert cache
  2. File-based caching

Then the corresponding directories must be writable by UID 1000. This change may be considered breaking, as it requires explicit directory permissions when these features are enabled.


ENTRYPOINT ["/chproxy"]
CMD [ "--help" ]

CMD ["--help"]