From 33e0a917c48965f74fd23823a477c74596add3e4 Mon Sep 17 00:00:00 2001 From: mSounak Date: Wed, 2 Feb 2022 12:35:53 +0530 Subject: [PATCH] fix Dockerfile --- Dockerfile | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 132a305..fa26923 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,9 @@ -FROM continuumio/anaconda3:4.4.0 +FROM python:3.8-slim COPY . /usr/app/ EXPOSE 5000 WORKDIR /usr/app/ -RUN pip install -r requirements.txt -CMD python flask_api.py \ No newline at end of file + +RUN apt-get update && apt-get install -y python3-pip + +RUN pip3 install -r requirements.txt +CMD ["python3", "flask_api.py"]