Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add instructions to create an application outside of the /app directory #5

Closed
wants to merge 3 commits into from

Conversation

bercikr
Copy link

@bercikr bercikr commented Feb 7, 2017

Took a few hours to figure this out and thought it could be useful to others...

@zamai
Copy link

zamai commented May 14, 2017

Great addition to the README!
Should be merged 👍

@tiangolo
Copy link
Owner

Thanks @bercikr for the idea!

I'm planing on modifying the image so that it uses an env var from the start, so that to override it it would just be to override that env var, without even having to modify Supervisor configs.

@zamai
Copy link

zamai commented May 15, 2017 via email

@bercikr
Copy link
Author

bercikr commented May 15, 2017

👍

@tiangolo
Copy link
Owner

Thanks a lot for the idea @bercikr ! ✔️ 💡


It is now integrated into the latest version (with a lot of other stuff). That specific change was actually in the base image for this one.

But there's a lot of new stuff too: https://github.com/tiangolo/uwsgi-nginx-flask-docker/releases/tag/v0.3.0


You can now follow the instructions for a custom app directory here: https://github.com/tiangolo/uwsgi-nginx-flask-docker#custom-uwsgiini-file

Basically, to set your app to /application, add something like this to your Dockerfile:

FROM tiangolo/uwsgi-nginx-flask:python3.6

ENV UWSGI_INI /application/uwsgi.ini

ENV STATIC_PATH /application/static

COPY ./application /application
WORKDIR /application

🎉

@tiangolo tiangolo closed this Aug 10, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants