mirror of https://github.com/hunshcn/gh-proxy
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
794 B
27 lines
794 B
FROM tiangolo/uwsgi-nginx:python3.7 |
|
|
|
LABEL maintainer="Sebastian Ramirez <tiangolo@gmail.com>" |
|
|
|
RUN pip install flask requests |
|
|
|
COPY ./app /app |
|
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 |
|
|
|
EXPOSE 80 |
|
|
|
CMD ["/start.sh"]
|
|
|