Spaces:
Build error
Build error
Initial dashboard deployment
Browse files- Dockerfile +3 -4
Dockerfile
CHANGED
|
@@ -12,11 +12,8 @@ WORKDIR /app
|
|
| 12 |
|
| 13 |
# Install Python deps
|
| 14 |
COPY requirements.txt .
|
| 15 |
-
RUN pip install --upgrade pip setuptools wheel
|
| 16 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 17 |
|
| 18 |
-
RUN python -c "import leafmap; print('leafmap installed')"
|
| 19 |
-
|
| 20 |
|
| 21 |
# Copy application files
|
| 22 |
COPY data_pipeline.py .
|
|
@@ -35,5 +32,7 @@ RUN python data_pipeline.py
|
|
| 35 |
# Expose the port HF Spaces expects
|
| 36 |
EXPOSE 7860
|
| 37 |
|
|
|
|
|
|
|
| 38 |
# Launch voila
|
| 39 |
-
CMD ["voila", "app.
|
|
|
|
| 12 |
|
| 13 |
# Install Python deps
|
| 14 |
COPY requirements.txt .
|
|
|
|
| 15 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 16 |
|
|
|
|
|
|
|
| 17 |
|
| 18 |
# Copy application files
|
| 19 |
COPY data_pipeline.py .
|
|
|
|
| 32 |
# Expose the port HF Spaces expects
|
| 33 |
EXPOSE 7860
|
| 34 |
|
| 35 |
+
RUN jupyter trust app.ipynb
|
| 36 |
+
|
| 37 |
# Launch voila
|
| 38 |
+
CMD ["voila", "app.ipynb", "--port=7860", "--no-browser", "--Voila.ip=0.0.0.0", "--Voila.tornado_settings={'headers':{'Content-Security-Policy':'frame-ancestors *'}}", "--template=gridstack"]
|