From e4225a8240c7aae743398332420dee72d0b2553a Mon Sep 17 00:00:00 2001 From: Mateusz Kowalkowski Date: Sat, 2 Dec 2023 14:47:45 +0100 Subject: [PATCH] Dockerfile cleanup --- Dockerfile | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/Dockerfile b/Dockerfile index cf64224..4254443 100644 --- a/Dockerfile +++ b/Dockerfile @@ -12,10 +12,6 @@ COPY requirements.txt /tmp/requirements.txt RUN pip install --upgrade pip RUN pip install --no-cache-dir -r /tmp/requirements.txt -RUN mkdir ~/.ssh -RUN echo "Host *" >> ~/.ssh/config -RUN echo "StrictHostKeyChecking no" >> ~/.ssh/config - # URL under which static (not modified by Python) files will be requested # They will be served by Nginx directly, without being handled by uWSGI ENV STATIC_URL /static @@ -33,16 +29,4 @@ WORKDIR /app # Make /app/* available to be imported by Python globally to better support several use cases like Alembic migrations. ENV PYTHONPATH=/app -# Move the base entrypoint to reuse it -#RUN mv /entrypoint.sh /uwsgi-nginx-entrypoint.sh -# Copy the entrypoint that will generate Nginx additional configs -#COPY entrypoint.sh /entrypoint.sh -#RUN chmod +x /entrypoint.sh - -#ENTRYPOINT ["/entrypoint.sh"] - -# Run the start script provided by the parent image tiangolo/uwsgi-nginx. -# It will check for an /app/prestart.sh script (e.g. for migrations) -# And then will start Supervisor, which in turn will start Nginx and uWSGI - CMD ["flask", "run", "--host", "0.0.0.0", "--port", "8080", "--cert", "cert.pem", "--key", "key.pem"]