Lbasara commited on
Commit
18a8341
·
1 Parent(s): bcedea9

Test Dockerfile pyvroom

Browse files
Files changed (1) hide show
  1. Dockerfile +15 -4
Dockerfile CHANGED
@@ -1,12 +1,23 @@
1
- FROM python:3.11
 
 
 
 
 
 
 
 
 
 
 
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
 
 
1
+ FROM python:3.12-slim
2
+
3
+ RUN apt-get update && apt-get install -y --no-install-recommends \
4
+ git build-essential cmake \
5
+ libssl-dev libasio-dev \
6
+ && rm -rf /var/lib/apt/lists/*
7
+
8
+ RUN git clone --recurse-submodules https://github.com/VROOM-Project/pyvroom /code/pyvroom
9
+
10
+ RUN pip install --upgrade pip uv
11
+ RUN uv pip install -r /code/pyvroom/build-requirements.txt
12
+ RUN uv pip install /code/pyvroom/
13
 
14
  WORKDIR /code
15
+ COPY . /code
16
 
17
  COPY ./requirements.txt /code/requirements.txt
18
+ RUN uv pip install -r /code/requirements.txt
19
+
20
 
 
21
 
22
  CMD ["panel", "serve", "/code/app.py", "--address", "0.0.0.0", "--port", "7860", "--allow-websocket-origin", "*"]
23