pseudotheos
commited on
Commit
•
8a3b1d6
1
Parent(s):
e939778
Update Dockerfile
Browse files- Dockerfile +7 -3
Dockerfile
CHANGED
@@ -10,6 +10,13 @@ RUN useradd -m appuser
|
|
10 |
# Set noninteractive mode to skip prompts
|
11 |
ENV DEBIAN_FRONTEND=noninteractive
|
12 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
13 |
# Copy the requirements file into the container at /app
|
14 |
COPY ./requirements.txt /app/
|
15 |
|
@@ -26,9 +33,6 @@ RUN python3 -m pip install --user --no-cache-dir --upgrade pip && \
|
|
26 |
# Add necessary directories to PATH
|
27 |
ENV PATH="/home/appuser/.local/bin:${PATH}"
|
28 |
|
29 |
-
# Add the user bin directory to the PATH to resolve the warnings
|
30 |
-
ENV PATH="/home/appuser/.local/bin:${PATH}"
|
31 |
-
|
32 |
# Copy the current directory contents into the container at /app
|
33 |
COPY . /app/
|
34 |
|
|
|
10 |
# Set noninteractive mode to skip prompts
|
11 |
ENV DEBIAN_FRONTEND=noninteractive
|
12 |
|
13 |
+
# Install Python and pip
|
14 |
+
RUN apt-get update && apt-get install -y --no-install-recommends \
|
15 |
+
python3 \
|
16 |
+
python3-pip \
|
17 |
+
&& apt-get clean \
|
18 |
+
&& rm -rf /var/lib/apt/lists/*
|
19 |
+
|
20 |
# Copy the requirements file into the container at /app
|
21 |
COPY ./requirements.txt /app/
|
22 |
|
|
|
33 |
# Add necessary directories to PATH
|
34 |
ENV PATH="/home/appuser/.local/bin:${PATH}"
|
35 |
|
|
|
|
|
|
|
36 |
# Copy the current directory contents into the container at /app
|
37 |
COPY . /app/
|
38 |
|