We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 04cf115 commit f9fb841Copy full SHA for f9fb841
3 files changed
.dockerignore
@@ -0,0 +1,11 @@
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
Dockerfile
@@ -0,0 +1,12 @@
+# Pull a pre-built alpine docker image with nginx and python3 installed
+FROM tiangolo/uwsgi-nginx:python3.6-alpine3.7
+
+ENV LISTEN_PORT=8000
+EXPOSE 8000
+# Copy the app files to a folder and run it from there
+WORKDIR /app
+ADD . /app
+RUN python3 -m pip install -r requirements.txt
12
+CMD ["uwsgi", "uwsgi.ini"]
uwsgi.ini
@@ -0,0 +1,10 @@
+[uwsgi]
+chdir=.
+module=web_project.wsgi:application
+protocol=http
+env=DJANGO_SETTINGS_MODULE=web_project.settings
+socket=127.0.0.1:8000
+uid=1000
+master=true
+plugins=python3
0 commit comments