-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
28 lines (21 loc) · 703 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
FROM ubuntu:18.04
LABEL maintainer="Daniel Juravski"
RUN mkdir -p /root/heMoji/
WORKDIR /root/heMoji/
COPY docker/ .
COPY setup.py .
COPY lib/ lib/
COPY src/ src/
COPY datasets/he_sentiment_twitter/token/train.tsv \
datasets/he_sentiment_twitter/token/dev.tsv \
datasets/he_sentiment_twitter/token/test.tsv \
data/amram_2017/
RUN mv examples.txt data/
RUN mv sentiment_model.hdf5 data/amram_2017/model.hdf5
RUN mv sentiment_examples.txt data/amram_2017/examples.txt
RUN apt-get update && apt-get install -y python2.7 python-pip nano
RUN pip install -e .
RUN mv README.sh /usr/local/bin/
RUN echo "/usr/local/bin/README.sh" >> /root/.bashrc
EXPOSE 5000
ENTRYPOINT ["python", "app.py"]