File size: 696 Bytes
b11ac48
 
 
69f0b84
b11ac48
 
 
 
 
 
 
 
4f77cfc
 
11fccf5
b8ce02e
 
 
cbb65b9
4f77cfc
b11ac48
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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"]