Spaces:
Sleeping
Sleeping
Update dockerfile
Browse files- Dockerfile +9 -13
Dockerfile
CHANGED
|
@@ -1,23 +1,19 @@
|
|
| 1 |
# Use the official Python image as a parent image
|
| 2 |
-
|
|
|
|
| 3 |
|
| 4 |
# Set the working directory in the container
|
| 5 |
-
WORKDIR /
|
| 6 |
-
|
| 7 |
-
# Copy the current directory contents into the container at /usr/src/app
|
| 8 |
-
COPY . /app
|
| 9 |
-
|
| 10 |
-
# Install any needed packages specified in requirements.txt
|
| 11 |
-
RUN pip install --no-cache-dir -r requirements.txt
|
| 12 |
|
| 13 |
-
|
| 14 |
-
|
|
|
|
| 15 |
|
| 16 |
-
|
| 17 |
-
ENV BOKEH_ALLOW_WS_ORIGIN=localhost:5006
|
| 18 |
|
| 19 |
# Run app.py when the container launches
|
| 20 |
-
CMD ["bokeh", "serve", "--show", "dashboard/app.py"]
|
|
|
|
| 21 |
RUN mkdir /.cache
|
| 22 |
RUN chmod 777 /.cache
|
| 23 |
RUN mkdir .chroma
|
|
|
|
| 1 |
# Use the official Python image as a parent image
|
| 2 |
+
# Use the official Python image as a parent image
|
| 3 |
+
FROM python:3.11
|
| 4 |
|
| 5 |
# Set the working directory in the container
|
| 6 |
+
WORKDIR /code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 7 |
|
| 8 |
+
COPY ./requirements.txt /code/requirements.txt
|
| 9 |
+
RUN python3 -m pip install --no-cache-dir --upgrade pip
|
| 10 |
+
RUN python3 -m pip install --no-cache-dir --upgrade -r /code/requirements.txt
|
| 11 |
|
| 12 |
+
COPY . .
|
|
|
|
| 13 |
|
| 14 |
# Run app.py when the container launches
|
| 15 |
+
# CMD ["bokeh", "serve", "--show", "dashboard/app.py", "address", ]
|
| 16 |
+
CMD ["panel", "serve", "/code/dashboard/app.py", "--address", "0.0.0.0", "--port", "7860", "--allow-websocket-origin", "eman96-dashboard.hf.space"]
|
| 17 |
RUN mkdir /.cache
|
| 18 |
RUN chmod 777 /.cache
|
| 19 |
RUN mkdir .chroma
|