File tree Expand file tree Collapse file tree 2 files changed +33
-1
lines changed Expand file tree Collapse file tree 2 files changed +33
-1
lines changed Original file line number Diff line number Diff line change
1
+ FROM python:3.10-slim as build
2
+
3
+ RUN apt-get update
4
+ RUN apt-get install -y --no-install-recommends build-essential gcc
5
+
6
+ WORKDIR /usr/app
7
+
8
+ RUN python -m venv /usr/app/venv
9
+ ENV PATH="/usr/app/venv/bin:$PATH"
10
+
11
+ copy requirements.txt .
12
+
13
+ RUN pip install -r requirements.txt
14
+
15
+ # FROM python:3.12.0b3-slim@sha256:8e3ef64883278384c49293caf631d614b4bfdac7bb494d44e17cf2d711ce2652
16
+ FROM python:3.10-slim@sha256:2bac43769ace90ebd3ad83e5392295e25dfc58e58543d3ab326c3330b505283d
17
+
18
+ RUN groupadd -g 999 python && \
19
+ useradd -r -u 999 -g python python
20
+
21
+ RUN mkdir /usr/app && chown python:python /usr/app
22
+ WORKDIR /usr/app
23
+ COPY --chown=python:python --from=build /usr/app/venv ./venv
24
+ COPY --chown=python:python . .
25
+
26
+ USER 999
27
+
28
+ ENV PATH="/usr/app/venv/bin:$PATH"
29
+
30
+ CMD ["bash" ]
31
+
Original file line number Diff line number Diff line change @@ -3,4 +3,5 @@ click==8.1.3
3
3
clickhouse-driver == 0.2.6
4
4
requests == 2.31.0
5
5
questionary == 1.10.0
6
- tabulate == 0.9.0
6
+ tabulate == 0.9.0
7
+ kubernetes == 27.2.0
You can’t perform that action at this time.
0 commit comments