Spaces:
Sleeping
Sleeping
Test Dockerfile pyvroom
Browse files- Dockerfile +8 -8
Dockerfile
CHANGED
|
@@ -5,19 +5,19 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
|
|
| 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 /
|
| 9 |
|
| 10 |
RUN pip install --upgrade pip uv
|
| 11 |
-
RUN uv pip install --system -r /
|
| 12 |
-
RUN uv pip install --system /
|
| 13 |
|
| 14 |
-
WORKDIR /
|
| 15 |
-
COPY . /
|
| 16 |
|
| 17 |
-
COPY ./requirements.txt /
|
| 18 |
-
RUN uv pip install -r /
|
| 19 |
|
| 20 |
|
| 21 |
|
| 22 |
-
CMD ["panel", "serve", "/
|
| 23 |
|
|
|
|
| 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 /app/pyvroom
|
| 9 |
|
| 10 |
RUN pip install --upgrade pip uv
|
| 11 |
+
RUN uv pip install --system -r /app/pyvroom/build-requirements.txt
|
| 12 |
+
RUN uv pip install --system /app/pyvroom/
|
| 13 |
|
| 14 |
+
WORKDIR /app
|
| 15 |
+
COPY . /app
|
| 16 |
|
| 17 |
+
COPY ./requirements.txt /app/requirements.txt
|
| 18 |
+
RUN uv pip install -r /app/requirements.txt
|
| 19 |
|
| 20 |
|
| 21 |
|
| 22 |
+
CMD ["panel", "serve", "/app/app.py", "--address", "0.0.0.0", "--port", "7860", "--allow-websocket-origin", "*"]
|
| 23 |
|