-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
26 lines (17 loc) · 756 Bytes
/
Dockerfile
File metadata and controls
26 lines (17 loc) · 756 Bytes
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
FROM tensorflow/tensorflow:1.12.0-py3
RUN mkdir -p /bsc
# first copy only the requirements file only for optimization
COPY ./requirements.txt /bsc
WORKDIR /bsc
RUN pip install -r requirements.txt
# copy the rest of the project here so the docker won't keep
# installing the requirement each time a file changes in the project
COPY . /bsc
# Install Part-Of-Speech components
RUN python -c "import nltk; nltk.download('punkt'); ntlk.download('averaged_perceptron_tagger')"
# Debugging in container
ENTRYPOINT ["tail", "-f", "/etc/hosts"]
# Running the generator
#ENTRYPOINT ["python", "rnnlm/tools/generator/generator.py", "-m", "results/exp_1", "-w", "rnnlm/data/two_sentence_lex.id"]
# Running the infrastrucutre
#ENTRYPOINT ["python", "main.py"]