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