datalab/docker-images-datalab/activetigger/Dockerfile

29 lines
653 B
Docker
Raw Normal View History

# Base
FROM rocker/shiny
2024-02-29 09:49:04 +01:00
# Copy requirements
COPY requirements.py /
COPY requirements.r /
2024-02-29 09:49:04 +01:00
# Install system dependencies
2024-02-29 09:49:04 +01:00
RUN apt-get update && \
apt-get install -y python3-pip libxml2-dev
2024-02-29 09:49:04 +01:00
## Install packages
2024-02-29 09:49:04 +01:00
RUN Rscript /requirements.r
RUN pip3 install -r /requirements.py
2024-02-29 09:49:04 +01:00
## Packages
#RUN python -m spacy download fr_core_news_sm \
#WORKDIR ~
#RUN wget https://dl.fbaipublicfiles.com/fasttext/vectors-crawl/cc.fr.300.bin.gz \
# && gunzip cc.fr.300.bin.gz
2024-02-29 09:49:04 +01:00
COPY activetigger ./activetigger
# Expose the default Shiny port
EXPOSE 3838
2024-02-29 09:49:04 +01:00
# Command to run the Shiny app
CMD ["R", "-e", "shiny::runApp('activetigger', port=3838, host='0.0.0.0')"]