-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
17 lines (12 loc) · 717 Bytes
/
Dockerfile
File metadata and controls
17 lines (12 loc) · 717 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# FROM alpine:3.7
FROM python:3.6-buster
# copy all of our code to the docker
COPY . /application
WORKDIR /application
RUN pip3 install -r requirements.txt
WORKDIR /application/chinese_L-12_H-768_A-12
RUN wget --load-cookies /tmp/cookies.txt "https://docs.google.com/uc?export=download&confirm=$(wget --quiet --save-cookies /tmp/cookies.txt --keep-session-cookies --no-check-certificate 'https://docs.google.com/uc?export=download&id=1fu-WIbGID7lUlTgH1G4rwIyrpoMUg4P9' -O- | sed -rn 's/.*confirm=([0-9A-Za-z_]+).*/\1\n/p')&id=1fu-WIbGID7lUlTgH1G4rwIyrpoMUg4P9" -O bert-model.zip && rm -rf /tmp/cookies.txt
RUN unzip -o bert-model.zip
EXPOSE 5005
WORKDIR /application
ENTRYPOINT ["bash", "/application/setup.sh"]