Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +1 -3
Dockerfile
CHANGED
|
@@ -14,7 +14,6 @@ USER user
|
|
| 14 |
|
| 15 |
# Set environmental variables
|
| 16 |
ENV PATH="/home/user/.local/bin:$PATH"
|
| 17 |
-
ENV PYTHONUNBUFFERED=1
|
| 18 |
|
| 19 |
# Copy in the requirements file and install dependencies
|
| 20 |
COPY --chown=user:user requirements.txt .
|
|
@@ -22,10 +21,9 @@ RUN pip install --no-cache-dir -r requirements.txt
|
|
| 22 |
|
| 23 |
# Copy the actual Python script and .env if it exists
|
| 24 |
COPY --chown=user:user main.py .
|
| 25 |
-
COPY --chown=user:user run.py .
|
| 26 |
# We don't forcibly COPY .env because users should use HF Secrets,
|
| 27 |
# but if it's there it won't break anything.
|
| 28 |
|
| 29 |
# The command to start our infinite loop script
|
| 30 |
# The -u flag is REQUIRED for Docker/HuggingFace so logs print immediately!
|
| 31 |
-
CMD ["python", "-u", "
|
|
|
|
| 14 |
|
| 15 |
# Set environmental variables
|
| 16 |
ENV PATH="/home/user/.local/bin:$PATH"
|
|
|
|
| 17 |
|
| 18 |
# Copy in the requirements file and install dependencies
|
| 19 |
COPY --chown=user:user requirements.txt .
|
|
|
|
| 21 |
|
| 22 |
# Copy the actual Python script and .env if it exists
|
| 23 |
COPY --chown=user:user main.py .
|
|
|
|
| 24 |
# We don't forcibly COPY .env because users should use HF Secrets,
|
| 25 |
# but if it's there it won't break anything.
|
| 26 |
|
| 27 |
# The command to start our infinite loop script
|
| 28 |
# The -u flag is REQUIRED for Docker/HuggingFace so logs print immediately!
|
| 29 |
+
CMD ["python", "-u", "main.py", "--run"]
|