sociofillmore_public / Dockerfile
Gosse Minnema
Re-enable data-loading, change port
b8ce02e
FROM python:3.9
WORKDIR /app
ADD . /app
RUN chmod -R 777 /app
RUN mkdir /nltk_data
RUN mkdir /.allennlp
RUN mkdir /.cache
RUN mkdir /.local
RUN chmod -R 777 /nltk_data
RUN chmod -R 777 /.allennlp
RUN chmod -R 777 /.cache
RUN chmod -R 777 /.local
RUN curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | bash
RUN apt-get install git-lfs
RUN git lfs install
RUN --mount=type=secret,id=HF_TOKEN,mode=0444,required=true \
git clone https://gossminn:$(cat /run/secrets/HF_TOKEN)@huggingface.co/datasets/responsibility-framing/sociofillmore-datasets /.cache/sfdata
RUN chmod -R 777 /.cache/sfdata
RUN pip install -v -r requirements.txt
CMD ["sh", "docker_commands.sh"]