Eman96 commited on
Commit
68f4304
·
verified ·
1 Parent(s): de2aed7

Update dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +9 -13
Dockerfile CHANGED
@@ -1,23 +1,19 @@
1
  # Use the official Python image as a parent image
2
- FROM python:3.11-slim
 
3
 
4
  # Set the working directory in the container
5
- WORKDIR /app
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
- # Make port 80 available to the world outside this container
14
- EXPOSE 5006
 
15
 
16
- # Define environment variable
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