Spaces:
Running
Running
Update Dockerfile
Browse files- Dockerfile +2 -2
Dockerfile
CHANGED
|
@@ -6,7 +6,7 @@ WORKDIR /app
|
|
| 6 |
|
| 7 |
# Install system dependencies
|
| 8 |
RUN apt-get update && apt-get install -y --no-install-recommends \
|
| 9 |
-
libgl1
|
| 10 |
libglib2.0-0 \
|
| 11 |
&& rm -rf /var/lib/apt/lists/*
|
| 12 |
|
|
@@ -28,7 +28,7 @@ RUN chown -R user:user /app
|
|
| 28 |
# Switch to the non-root user
|
| 29 |
USER user
|
| 30 |
|
| 31 |
-
# Expose the port
|
| 32 |
EXPOSE 7860
|
| 33 |
|
| 34 |
# Set environment variables for Flask host and port
|
|
|
|
| 6 |
|
| 7 |
# Install system dependencies
|
| 8 |
RUN apt-get update && apt-get install -y --no-install-recommends \
|
| 9 |
+
libgl1 \
|
| 10 |
libglib2.0-0 \
|
| 11 |
&& rm -rf /var/lib/apt/lists/*
|
| 12 |
|
|
|
|
| 28 |
# Switch to the non-root user
|
| 29 |
USER user
|
| 30 |
|
| 31 |
+
# Expose the port Gunicorn will run on (Using 7860 as in CMD)
|
| 32 |
EXPOSE 7860
|
| 33 |
|
| 34 |
# Set environment variables for Flask host and port
|