Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files- Dockerfile +2 -0
Dockerfile
CHANGED
@@ -4,6 +4,7 @@ FROM python:3.12-slim
|
|
4 |
# Set environment variables to prevent Python from writing .pyc files and buffering stdout/stderr
|
5 |
ENV PYTHONDONTWRITEBYTECODE=1
|
6 |
ENV PYTHONUNBUFFERED=1
|
|
|
7 |
|
8 |
# Install system dependencies
|
9 |
RUN apt-get update && apt-get install -y \
|
@@ -30,4 +31,5 @@ RUN pip install -r requirements.txt
|
|
30 |
RUN unzip data.zip -d /app/data
|
31 |
|
32 |
# Set the default command to run when starting the container
|
|
|
33 |
CMD ["python", "m5.py"]
|
|
|
4 |
# Set environment variables to prevent Python from writing .pyc files and buffering stdout/stderr
|
5 |
ENV PYTHONDONTWRITEBYTECODE=1
|
6 |
ENV PYTHONUNBUFFERED=1
|
7 |
+
ENV TRANSFOMERS_CACHE= /app/cache
|
8 |
|
9 |
# Install system dependencies
|
10 |
RUN apt-get update && apt-get install -y \
|
|
|
31 |
RUN unzip data.zip -d /app/data
|
32 |
|
33 |
# Set the default command to run when starting the container
|
34 |
+
CMD ['sudo']
|
35 |
CMD ["python", "m5.py"]
|