Fixed api docker image
Some checks failed
build

This commit is contained in:
2023-03-28 00:31:19 +02:00
parent 07b9ebb487
commit ab331de72d
2 changed files with 15 additions and 16 deletions

View File

@@ -7,12 +7,12 @@ WORKDIR /srv/flask_app
RUN apt update && apt install -y python3 python3-pip curl nginx && rm -rf /var/lib/apt/lists/*
# Install the dependencies
COPY api/requirements.txt /srv/flask_app/
COPY requirements.txt /srv/flask_app/
RUN pip install -r requirements.txt --src /usr/local/src --no-warn-script-location
# Copy the source code to the working directory
COPY api /srv/flask_app
COPY api/deploy/nginx.conf /etc/nginx
COPY . /srv/flask_app
COPY ./deploy/nginx.conf /etc/nginx
# Change file permissions
RUN chmod +x ./deploy/start.sh