Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +5 -6
Dockerfile
CHANGED
|
@@ -3,18 +3,17 @@ FROM python:3.10
|
|
| 3 |
# Create app directory
|
| 4 |
WORKDIR /code
|
| 5 |
|
|
|
|
|
|
|
|
|
|
| 6 |
# Install dependencies
|
| 7 |
-
COPY requirements.txt .
|
| 8 |
RUN --mount=type=cache,target=/root/.cache/pip pip install -r requirements.txt
|
| 9 |
|
| 10 |
-
# Copy ALL files (including app.sh)
|
| 11 |
-
COPY . .
|
| 12 |
-
|
| 13 |
# Make app.sh executable
|
| 14 |
RUN chmod +x app.sh
|
| 15 |
|
| 16 |
-
# Expose port 7860
|
| 17 |
EXPOSE 7860
|
| 18 |
|
| 19 |
-
#
|
| 20 |
CMD ["bash", "app.sh"]
|
|
|
|
| 3 |
# Create app directory
|
| 4 |
WORKDIR /code
|
| 5 |
|
| 6 |
+
# Copy all files first
|
| 7 |
+
COPY . .
|
| 8 |
+
|
| 9 |
# Install dependencies
|
|
|
|
| 10 |
RUN --mount=type=cache,target=/root/.cache/pip pip install -r requirements.txt
|
| 11 |
|
|
|
|
|
|
|
|
|
|
| 12 |
# Make app.sh executable
|
| 13 |
RUN chmod +x app.sh
|
| 14 |
|
| 15 |
+
# Expose port 7860
|
| 16 |
EXPOSE 7860
|
| 17 |
|
| 18 |
+
# Start the server
|
| 19 |
CMD ["bash", "app.sh"]
|