Spaces:
Build error
Build error
Update Dockerfile
Browse files- Dockerfile +2 -3
Dockerfile
CHANGED
|
@@ -1,5 +1,3 @@
|
|
| 1 |
-
FROM ubuntu:latest
|
| 2 |
-
|
| 3 |
RUN pip install --no-cache-dir pip==22.3.1
|
| 4 |
RUN pip install --no-cache-dir datasets "huggingface-hub>=0.12.1" "protobuf<4" "click<8.1"
|
| 5 |
|
|
@@ -16,7 +14,7 @@ RUN sed -i 's/archive.ubuntu.com/us.archive.ubuntu.com/' /etc/apt/sources.list &
|
|
| 16 |
# Install Python and the packages listed in requirements.txt
|
| 17 |
RUN apt-get update && \
|
| 18 |
DEBIAN_FRONTEND=noninteractive apt-get install -y python3 python3-pip && \
|
| 19 |
-
pip3 install -
|
| 20 |
|
| 21 |
# Set the working directory to /app
|
| 22 |
WORKDIR /app
|
|
@@ -26,3 +24,4 @@ COPY app.py /app/app.py
|
|
| 26 |
|
| 27 |
# Start the application
|
| 28 |
CMD ["python3", "app.py"]
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
RUN pip install --no-cache-dir pip==22.3.1
|
| 2 |
RUN pip install --no-cache-dir datasets "huggingface-hub>=0.12.1" "protobuf<4" "click<8.1"
|
| 3 |
|
|
|
|
| 14 |
# Install Python and the packages listed in requirements.txt
|
| 15 |
RUN apt-get update && \
|
| 16 |
DEBIAN_FRONTEND=noninteractive apt-get install -y python3 python3-pip && \
|
| 17 |
+
pip3 install -r /root/requirements.txt
|
| 18 |
|
| 19 |
# Set the working directory to /app
|
| 20 |
WORKDIR /app
|
|
|
|
| 24 |
|
| 25 |
# Start the application
|
| 26 |
CMD ["python3", "app.py"]
|
| 27 |
+
|