forked from sebastian-nehrdich/align-tibetan
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
34 lines (27 loc) · 917 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
FROM continuumio/miniconda3
RUN conda create -n env python=3.8
RUN echo "source activate env" > ~/.bashrc
ENV PATH /opt/conda/envs/env/bin:$PATH
RUN apt-get -qq -y update
RUN apt-get -qq -y upgrade
RUN apt-get -qq -y install \
gcc \
g++ \
git \
make
# Set the working directory to /app
WORKDIR /app
COPY requirements.txt /app/requirements.txt
# Install any needed packages specified in requirements.txt
RUN pip install --trusted-host pypi.python.org -r requirements.txt --verbose
# copy source code
COPY . /app
# Install models
RUN echo "སློབ་དཔོན་བྲམ་ཟེ་རྟ་དབྱངསཀྱིཡོམཛད།" > test-bo.txt
RUN echo "Hello World" > test-en.txt
RUN chmod +x align_tib_en.sh
RUN /app/align_tib_en.sh test-bo.txt test-en.txt
RUN cat ./output/test-bo.txt.train_cleaned
# clean up
RUN rm -rf /root/.cache/
RUN rm -rf output/