File tree Expand file tree Collapse file tree 3 files changed +33
-0
lines changed Expand file tree Collapse file tree 3 files changed +33
-0
lines changed Original file line number Diff line number Diff line change 1+ node_modules
2+ npm-debug.log
3+ Dockerfile *
4+ docker-compose *
5+ .dockerignore
6+ .git
7+ .gitignore
8+ README.md
9+ LICENSE
10+ .vscode
11+ env
Original file line number Diff line number Diff line change 1+ # Pull a pre-built alpine docker image with nginx and python3 installed
2+ FROM tiangolo/uwsgi-nginx:python3.6-alpine3.7
3+
4+ ENV LISTEN_PORT=8000
5+ EXPOSE 8000
6+
7+ # Copy the app files to a folder and run it from there
8+ WORKDIR /app
9+ ADD . /app
10+
11+ RUN python3 -m pip install -r requirements.txt
12+ CMD ["uwsgi" , "uwsgi.ini" ]
Original file line number Diff line number Diff line change 1+ [uwsgi]
2+ chdir =.
3+ module =web_project.wsgi:application
4+ protocol =http
5+ env =DJANGO_SETTINGS_MODULE =web_project.settings
6+ socket =127.0.0.1:8000
7+ uid =1000
8+ master =true
9+ plugins =python3
10+
You can’t perform that action at this time.
0 commit comments