|
a |
|
b/app/backend/Dockerfile~HEAD |
|
|
1 |
FROM python:3.6-slim-buster |
|
|
2 |
|
|
|
3 |
MAINTAINER Ayrton San Joaquin <ajsanjoaquin@gmail.com> |
|
|
4 |
|
|
|
5 |
# check our python environment |
|
|
6 |
RUN python3 --version |
|
|
7 |
RUN pip3 --version |
|
|
8 |
|
|
|
9 |
# set work directory for the container |
|
|
10 |
WORKDIR /app |
|
|
11 |
#install reqs |
|
|
12 |
COPY requirements.txt ./ |
|
|
13 |
|
|
|
14 |
RUN pip install --no-cache-dir -r requirements.txt |
|
|
15 |
RUN apt-get install wget |
|
|
16 |
#get model weights |
|
|
17 |
<<<<<<< HEAD:app/backend/backend.dockerfile |
|
|
18 |
RUN wget -q -O corona_resnet34.pth https://www.dropbox.com/s/o27w0dik8hdjaab/corona_resnet34.pth?dl=0 |
|
|
19 |
======= |
|
|
20 |
RUN apt-get update |
|
|
21 |
RUN apt-get -y install wget |
|
|
22 |
RUN apt-get install libgtk2.0-dev -y |
|
|
23 |
RUN wget -O corona_resnet34.pth https://www.dropbox.com/s/o27w0dik8hdjaab/corona_resnet34.pth?dl=1 |
|
|
24 |
RUN mv corona_resnet34.pth /corona_resnet34.pth |
|
|
25 |
>>>>>>> 22ae2796ef2caaa3fc73ad480b0b342738474e13:app/backend/Dockerfile |
|
|
26 |
|
|
|
27 |
COPY . /app |
|
|
28 |
# RUN mv /corona_resnet34.pth /app/corona_resnet34.pth |
|
|
29 |
|
|
|
30 |
EXPOSE 5000 |
|
|
31 |
|
|
|
32 |
# Running Python Application |
|
|
33 |
CMD ["python3", "app/backend/app.py"] |