@@ -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
|
||||
|
Reference in New Issue
Block a user