From 41dd16e81fa247728757e11b166c8d8d8f9bd29e Mon Sep 17 00:00:00 2001 From: H4CK3R-01 Date: Tue, 5 Apr 2022 19:08:09 +0200 Subject: [PATCH] Updated Dockerfile --- api/Dockerfile | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/api/Dockerfile b/api/Dockerfile index cfc57aa..c9a163b 100644 --- a/api/Dockerfile +++ b/api/Dockerfile @@ -1,16 +1,16 @@ -FROM python:3.10-alpine +FROM python:3.10-slim -# Change the working directory to the project root +# Change the working directory to the root of the project WORKDIR /srv/flask_app # Install dependencies -RUN apk add nginx build-base libffi-dev curl uwsgi +RUN apt update && apt install -y python3 python3-pip curl nginx && rm -rf /var/lib/apt/lists/* -# Install python dependencies +# Install the dependencies COPY api/requirements.txt /srv/flask_app/ RUN pip install -r requirements.txt --src /usr/local/src --no-warn-script-location -# Copy the app +# Copy the source code to the working directory COPY api /srv/flask_app COPY api/deploy/nginx.conf /etc/nginx