Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files- Dockerfile +5 -2
Dockerfile
CHANGED
@@ -7,8 +7,11 @@
|
|
7 |
ARG PYTHON_VERSION=3.8
|
8 |
FROM python:${PYTHON_VERSION}-slim as base
|
9 |
|
10 |
-
#
|
11 |
-
|
|
|
|
|
|
|
12 |
|
13 |
# Prevents Python from writing pyc files.
|
14 |
ENV PYTHONDONTWRITEBYTECODE=1
|
|
|
7 |
ARG PYTHON_VERSION=3.8
|
8 |
FROM python:${PYTHON_VERSION}-slim as base
|
9 |
|
10 |
+
# Copy the requirements file into the container.
|
11 |
+
COPY requirements.txt .
|
12 |
+
|
13 |
+
# Install the dependencies from the requirements file.
|
14 |
+
RUN python -m pip install --no-cache-dir -r requirements.txt
|
15 |
|
16 |
# Prevents Python from writing pyc files.
|
17 |
ENV PYTHONDONTWRITEBYTECODE=1
|