-
-
Notifications
You must be signed in to change notification settings - Fork 20
/
Dockerfile
26 lines (22 loc) · 809 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
FROM python:3.7-slim-buster
WORKDIR /app
COPY requirements.txt .
RUN apt-get update && \
apt-get install ffmpeg libsm6 libxext6 g++ pkg-config libicu-dev -y && \
pip install -r requirements.txt && \
python -m spacy download en_core_web_sm && \
pip install pyICU pycld2 morfessor polyglot && \
apt-get clean && \
rm -rf ~/.cache/pip/*
COPY . .
ENV streamable_username ${streamable_username}
ENV streamable_password ${streamable_password}
ENV reddit_client_id ${reddit_client_id}
ENV reddit_client_secret ${reddit_client_secret}
ENV reddit_refresh_token ${reddit_refresh_token}
CMD for lang in ${oe_polyglot_models}; do \
# The download command is idempotent
python -m polyglot download sentiment2.$lang --exit-on-error ;\
done &&\
python ./entrypoint.py && \
mv ./*.mp4 ./outputs