We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 76630ea commit 94cc38fCopy full SHA for 94cc38f
2 files changed
.dockerignore
@@ -4,10 +4,13 @@ __pycache__/
4
config/*.txt
5
logs/*.log
6
7
+tests/
8
+config.ini.example
9
+
10
.github
11
.bumpversion.cfg
12
.gitignore
13
.git
14
.pylintrc
15
.readthedocs.yaml
-CHANGELOFG.md
16
+CHANGELOG.md
Dockerfile
@@ -1,12 +1,15 @@
1
-FROM python:3.13-slim
2
-
+FROM python:3.13-slim as builder
3
WORKDIR /app
COPY requirements.txt .
-RUN pip install --no-cache-dir -r requirements.txt
+RUN pip install --no-cache-dir --prefix=/install -r requirements.txt
-COPY . .
+FROM python:3.13-slim
+RUN useradd -m -s /bin/bash pyproxy
+WORKDIR /app
+COPY --from=builder /install /usr/local
+COPY . .
+RUN chown -R pyproxy:pyproxy /app
+USER pyproxy
EXPOSE 8080
ENTRYPOINT ["python3", "pyproxy.py"]
0 commit comments