Updated Dockerfile
This commit is contained in:
parent
772a4d2c60
commit
41dd16e81f
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user