File tree Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,10 @@ FROM quay.io/centos/centos:stream9
2
2
3
3
ARG USER_ID=${USER_ID:-1001}
4
4
ARG STATIC_ROOT=/var/lib/eda/static
5
+
6
+ # python3.11 and python3.12 supported
7
+ ARG PYTHON_BIN="python3.11"
8
+
5
9
RUN useradd --uid "$USER_ID" --gid 0 --home-dir /app --create-home eda \
6
10
&& mkdir -p /app/.local /var/lib/eda/ \
7
11
&& chown -R "${USER_ID}:0" /app/.local /var/lib/eda \
@@ -13,10 +17,11 @@ RUN mkdir -p /var/lib/eda/redis-tls \
13
17
COPY ./tools/docker/redis-tls /var/lib/eda/redis-tls
14
18
15
19
RUN DNF=dnf \
16
- INSTALL_PACKAGES="python3.11 \
17
- python3.11 -devel \
18
- python3.11 -pip \
20
+ INSTALL_PACKAGES="${PYTHON_BIN} \
21
+ ${PYTHON_BIN} -devel \
22
+ ${PYTHON_BIN} -pip \
19
23
libpq-devel \
24
+ libffi-devel \
20
25
gcc \
21
26
gettext \
22
27
git-core \
@@ -28,7 +33,7 @@ RUN DNF=dnf \
28
33
&& rm -rf /var/cache/dnf
29
34
30
35
USER "$USER_ID"
31
- ENV POETRY_VERSION="1.7.1 " \
36
+ ENV POETRY_VERSION="1.8.3 " \
32
37
PYTHONDONTWRITEBYTECODE=1 \
33
38
PYTHONUNBUFFERED=1 \
34
39
PIP_NO_CACHE_DIR=1 \
@@ -37,7 +42,6 @@ ENV POETRY_VERSION="1.7.1" \
37
42
VIRTUAL_ENV=/app/venv \
38
43
SOURCES_DIR=/app/src \
39
44
PATH="/app/.local/bin:$PATH" \
40
- PYTHON_BIN="python3.11" \
41
45
HOME="/app"
42
46
43
47
# Install poetry, create virtual environment
You can’t perform that action at this time.
0 commit comments