-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
38 lines (25 loc) · 881 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
35
36
37
38
FROM pytorch/torchserve:0.4.0-gpu
USER root
ENV LC_ALL C.UTF-8
ENV LANG C.UTF-8
RUN apt update \
&& apt install -y nginx curl \
&& rm -rf /var/lib/apt/lists/*
RUN echo default_workers_per_model=1 >> /home/model-server/config.properties
WORKDIR /app
COPY requirements.txt .
RUN pip install --upgrade pip
RUN pip install -r requirements.txt
COPY nginx.conf .
COPY streamlit /streamlit
ARG DISTILBERT_BASE_UNCASED_FINETUNED_SST_2_ENGLISH_LINK
ENV DISTILBERT_BASE_UNCASED_FINETUNED_SST_2_ENGLISH_LINK $DISTILBERT_BASE_UNCASED_FINETUNED_SST_2_ENGLISH_LINK
ARG FINBERT_LINK
ENV FINBERT_LINK $FINBERT_LINK
ARG KOELECTRA_BASE_NSMC_LINK
ENV KOELECTRA_BASE_NSMC_LINK $KOELECTRA_BASE_NSMC_LINK
ARG TWITTER_ROBERTA_BASE_EMOTION_LINK
ENV TWITTER_ROBERTA_BASE_EMOTION_LINK $TWITTER_ROBERTA_BASE_EMOTION_LINK
COPY entrypoint.sh .
EXPOSE 80
ENTRYPOINT [ "bash", "entrypoint.sh" ]