Spaces:
Runtime error
Runtime error
Update Dockerfile.dev
Browse files- Dockerfile.dev +31 -31
Dockerfile.dev
CHANGED
|
@@ -1,31 +1,31 @@
|
|
| 1 |
-
# Development Dockerfile with hot reload
|
| 2 |
-
FROM python:3.11-slim
|
| 3 |
-
|
| 4 |
-
# Set working directory
|
| 5 |
-
WORKDIR /app
|
| 6 |
-
|
| 7 |
-
# Install system dependencies
|
| 8 |
-
RUN apt-get update && apt-get install -y \
|
| 9 |
-
gcc \
|
| 10 |
-
g++ \
|
| 11 |
-
libpq-dev \
|
| 12 |
-
&& rm -rf /var/lib/apt/lists/*
|
| 13 |
-
|
| 14 |
-
# Copy requirements and install Python dependencies
|
| 15 |
-
COPY requirements.txt .
|
| 16 |
-
RUN pip install --no-cache-dir -r requirements.txt
|
| 17 |
-
|
| 18 |
-
# Install development dependencies
|
| 19 |
-
RUN pip install --no-cache-dir \
|
| 20 |
-
watchdog \
|
| 21 |
-
flask-debugtoolbar \
|
| 22 |
-
ipdb
|
| 23 |
-
|
| 24 |
-
# Copy application code
|
| 25 |
-
COPY . .
|
| 26 |
-
|
| 27 |
-
# Expose port
|
| 28 |
-
EXPOSE
|
| 29 |
-
|
| 30 |
-
# Development command with hot reload
|
| 31 |
-
CMD ["python", "-m", "flask", "run", "--host=0.0.0.0", "--port=
|
|
|
|
| 1 |
+
# Development Dockerfile with hot reload
|
| 2 |
+
FROM python:3.11-slim
|
| 3 |
+
|
| 4 |
+
# Set working directory
|
| 5 |
+
WORKDIR /app
|
| 6 |
+
|
| 7 |
+
# Install system dependencies
|
| 8 |
+
RUN apt-get update && apt-get install -y \
|
| 9 |
+
gcc \
|
| 10 |
+
g++ \
|
| 11 |
+
libpq-dev \
|
| 12 |
+
&& rm -rf /var/lib/apt/lists/*
|
| 13 |
+
|
| 14 |
+
# Copy requirements and install Python dependencies
|
| 15 |
+
COPY requirements.txt .
|
| 16 |
+
RUN pip install --no-cache-dir -r requirements.txt
|
| 17 |
+
|
| 18 |
+
# Install development dependencies
|
| 19 |
+
RUN pip install --no-cache-dir \
|
| 20 |
+
watchdog \
|
| 21 |
+
flask-debugtoolbar \
|
| 22 |
+
ipdb
|
| 23 |
+
|
| 24 |
+
# Copy application code
|
| 25 |
+
COPY . .
|
| 26 |
+
|
| 27 |
+
# Expose port
|
| 28 |
+
EXPOSE 7860
|
| 29 |
+
|
| 30 |
+
# Development command with hot reload
|
| 31 |
+
CMD ["python", "-m", "flask", "run", "--host=0.0.0.0", "--port=7860", "--reload"]
|