29 lines
653 B
Docker
29 lines
653 B
Docker
# Base
|
|
FROM rocker/shiny
|
|
|
|
# Copy requirements
|
|
COPY requirements.py /
|
|
COPY requirements.r /
|
|
|
|
# Install system dependencies
|
|
RUN apt-get update && \
|
|
apt-get install -y python3-pip libxml2-dev
|
|
|
|
## Install packages
|
|
RUN Rscript /requirements.r
|
|
RUN pip3 install -r /requirements.py
|
|
|
|
## 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
|
|
|
|
|
|
COPY activetigger ./activetigger
|
|
# Expose the default Shiny port
|
|
EXPOSE 3838
|
|
|
|
# Command to run the Shiny app
|
|
CMD ["R", "-e", "shiny::runApp('activetigger', port=3838, host='0.0.0.0')"]
|