[69507b]: / app / backend / Dockerfile

Download this file

26 lines (19 with data), 624 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 python:3.6-slim-buster
MAINTAINER Ayrton San Joaquin <ajsanjoaquin@gmail.com>
# check our python environment
RUN python3 --version
RUN pip3 --version
# set work directory for the container
#install reqs
COPY requirements.txt ./
RUN pip install --no-cache-dir -r requirements.txt
#get model weights
RUN apt-get update
RUN apt-get -y install wget
RUN apt-get install libgtk2.0-dev -y
RUN wget -O corona_resnet34.pth https://www.dropbox.com/s/o27w0dik8hdjaab/corona_resnet34.pth?dl=1
COPY . ./
# RUN mv /corona_resnet34.pth /app/corona_resnet34.pth
EXPOSE 5000
# Running Python Application
CMD ["python3", "app.py"]