-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
37 lines (24 loc) · 820 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# docker build -t linguae --rm .
# docker run --rm -ti --name linguae linguae
FROM python:3.10.9-bullseye
RUN apt-get -y update && apt-get -y install gcc
RUN useradd --create-home --shell /bin/bash linguae
WORKDIR /home/linguae
COPY requirements.txt .
COPY *.sh /home/linguae/
# install dependencies
RUN pip --no-cache-dir install -r requirements.txt
# Run shell scripts to download data
RUN ./DownloadMUSEWordEmbeddings.sh
RUN ./DownloadTatoebaSentences.sh
RUN ./DownloadConceptnetNumberbatchVectors.sh
COPY . .
RUN mv wiki.multi* ./linguae/data/museWordVectors/
RUN mv sentences.csv ./linguae/data/tatoebaFiles/
# install linguae
RUN pip install -e .
RUN python -m nltk.downloader punkt
# Clean up APT when done.
RUN apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
USER linguae
CMD ["bash"]