Spaces:
Sleeping
Sleeping
Upload Dockerfile with huggingface_hub
Browse files- Dockerfile +7 -5
Dockerfile
CHANGED
|
@@ -2,10 +2,12 @@ FROM python:3.10-slim
|
|
| 2 |
|
| 3 |
WORKDIR /app
|
| 4 |
|
| 5 |
-
# Install
|
| 6 |
-
RUN apt-get update && apt-get install -y --no-install-recommends
|
|
|
|
|
|
|
| 7 |
|
| 8 |
-
# Copy all project files
|
| 9 |
COPY . .
|
| 10 |
|
| 11 |
# Install backend dependencies
|
|
@@ -14,12 +16,12 @@ RUN pip install --no-cache-dir -r requirements.backend.txt
|
|
| 14 |
# Install frontend dependencies
|
| 15 |
RUN pip install --no-cache-dir -r requirements.frontend.txt
|
| 16 |
|
| 17 |
-
# Expose
|
| 18 |
EXPOSE 7860
|
| 19 |
EXPOSE 8000
|
| 20 |
|
| 21 |
# Make startup script executable
|
| 22 |
RUN chmod +x /app/start.sh
|
| 23 |
|
| 24 |
-
# Run
|
| 25 |
CMD ["/app/start.sh"]
|
|
|
|
| 2 |
|
| 3 |
WORKDIR /app
|
| 4 |
|
| 5 |
+
# Install curl only
|
| 6 |
+
RUN apt-get update && apt-get install -y --no-install-recommends \
|
| 7 |
+
curl \
|
| 8 |
+
&& rm -rf /var/lib/apt/lists/*
|
| 9 |
|
| 10 |
+
# Copy all project files
|
| 11 |
COPY . .
|
| 12 |
|
| 13 |
# Install backend dependencies
|
|
|
|
| 16 |
# Install frontend dependencies
|
| 17 |
RUN pip install --no-cache-dir -r requirements.frontend.txt
|
| 18 |
|
| 19 |
+
# Expose ports
|
| 20 |
EXPOSE 7860
|
| 21 |
EXPOSE 8000
|
| 22 |
|
| 23 |
# Make startup script executable
|
| 24 |
RUN chmod +x /app/start.sh
|
| 25 |
|
| 26 |
+
# Run startup script
|
| 27 |
CMD ["/app/start.sh"]
|