-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
31 lines (20 loc) · 684 Bytes
/
Dockerfile
File metadata and controls
31 lines (20 loc) · 684 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
31
#
# Dockerfile for building a client
#
FROM python:3.14-slim-bookworm
WORKDIR /app
USER root
RUN apt-get update && apt-get upgrade -y && apt-get clean && rm -rf /var/lib/apt/lists/*
RUN groupadd -r nonroot_usr && useradd -r -g nonroot_usr nonroot_usr
COPY pyproject.toml .
COPY requirements.txt .
COPY dist dist
COPY client/client.py client.py
#RUN pip config set global.index-url https://nexus.mycompany.com/repository/pypi-packages/simple
#RUN pip config set global.trusted-host nexus.mycompany.com
RUN pip install /app/dist/*.whl
RUN pip install -r requirements.txt
RUN rm -rf dist
RUN chown -R nonroot_usr:nonroot_usr /app
USER nonroot_usr
CMD ["python3", "client.py"]