-
Notifications
You must be signed in to change notification settings - Fork 57
Expand file tree
/
Copy pathDockerfile
More file actions
32 lines (22 loc) · 698 Bytes
/
Dockerfile
File metadata and controls
32 lines (22 loc) · 698 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
FROM inseefrlab/onyxia-vscode-python:py3.12.6-2024.10.07
USER root
RUN apt-get -y update && \
apt-get -y install wget && \
apt-get install -y git && \
apt-get install build-essential -y && \
apt-get install libmagic-dev -y && \
rm -rf /var/lib/apt/lists/*
RUN apt-get -y update && \
DEBIAN_FRONTEND=noninteractive apt install -y imagemagick
RUN which python
COPY requirements.txt .
COPY requirements.sh .
# Install graphviz
RUN pip install uv &&\
uv pip install -r requirements.txt --system && \
chmod +x requirements.sh && \
./requirements.sh
RUN uv pip list --format json
RUN python -m spacy download en_core_web_sm
EXPOSE 5000
CMD ["pip", "freeze"]