Commit 78dd215e authored by Alexandre Delanoë's avatar Alexandre Delanoë

WIP: need docker-compose config

parent cd8ea69b
Pipeline #3769 failed
FROM python:3.9-slim-bullseye
ENV VIRTUAL_ENV=/opt/venv
RUN python3 -m venv $VIRTUAL_ENV
ENV PATH="$VIRTUAL_ENV/bin:$PATH"
WORKDIR /tmp
# Install dependencies:
#COPY /tmp/requirements.txt .
RUN echo "hello" #pip install -r requirements.txt
# Run the application:
#COPY myapp.py .
#CMD ["python", "myapp.py"]
#!/bin/bash
# apt-get install binutils debootstrap
# sudo mkdir -p /srv/chroot/bullseye
#sudo debootstrap --arch i386 bullseye /srv/chroot/bullseye https://deb.debian.org/debian
rm env
nix-env -iA nixpkgs.python39Full
nix-env -iA python39Packages.numpy
sudo apt update
sudo apt install virtualenv
virtualenv -p $(which python3) env
virtualenv -p $(which python3.9) env
source env/bin/activate
pip install -r requirements.txt
python -m spacy download fr_core_news_md && echo "Installation complete"
# Specify fixed versions for spaCy and sense2vec because pretrained models are only compatible with certain versions;
# and tests use hardcoded outputs, so the program may randomly fail to build if a dynamic version is used.
setuptools
numpy==1.24.2
sense2vec==2.0.0
ujson==4.2.0
fastapi==0.45.0
fastapi==0.55.0
uvicorn==0.15.0
pytest==6.2.5
requests==2.26.0
spacy==3.1.3
fr-core-news-md @ https://github.com/explosion/spacy-models/releases/download/fr_core_news_md-3.1.0/fr_core_news_md-3.1.0-py3-none-any.whl
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment