Jammesopsss commited on
Commit
00c4126
1 Parent(s): b26e184

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +18 -12
Dockerfile CHANGED
@@ -1,16 +1,22 @@
1
- FROM python:3.9
2
 
3
- WORKDIR /code
4
-
5
- COPY ./requirements.txt /code/requirements.txt
6
- RUN python3 -m pip install --no-cache-dir --upgrade pip
7
- RUN python3 -m pip install --no-cache-dir --upgrade -r /code/requirements.txt
 
 
 
 
 
 
8
 
9
- COPY . .
 
 
10
 
11
- CMD ["panel", "serve", "/code/app.py", "--address", "0.0.0.0", "--port", "7860", "--allow-websocket-origin", "*"]
 
12
 
13
- RUN mkdir /.cache
14
- RUN chmod 777 /.cache
15
- RUN mkdir .chroma
16
- RUN chmod 777 .chroma
 
1
+ FROM python:3.8-slim
2
 
3
+ RUN \
4
+ set -eux; \
5
+ apt-get update; \
6
+ DEBIAN_FRONTEND="noninteractive" apt-get install -y --no-install-recommends \
7
+ python3-pip \
8
+ build-essential \
9
+ python3-venv \
10
+ ffmpeg \
11
+ git \
12
+ ; \
13
+ rm -rf /var/lib/apt/lists/*
14
 
15
+ RUN pip3 install -U pip && pip3 install -U wheel && pip3 install -U setuptools==59.5.0
16
+ COPY ./requirements.txt /tmp/requirements.txt
17
+ RUN pip3 install -r /tmp/requirements.txt && rm -r /tmp/requirements.txt
18
 
19
+ COPY . /code
20
+ WORKDIR /code
21
 
22
+ CMD ["bash"]