Commit cd37a076 authored by Bengfort's avatar Bengfort
Browse files

install uwsgi

parent e6e3acc6
FROM python:3.6-alpine3.7
ENV PYTHONUNBUFFERED 1
RUN apk update && apk add gcc make nodejs-npm python-dev musl-dev postgresql-dev openldap openldap-dev cyrus-sasl-dev
RUN apk update && apk add gcc make uwsgi uwsgi-python3 nodejs-npm python-dev musl-dev postgresql-dev openldap openldap-dev cyrus-sasl-dev
COPY ./ code/
WORKDIR code/
......
[uwsgi]
chdir=/code/castellum_core/castellum_core
wsgi-file=castellum_core/wsgi.py
socket=127.0.0.1:9000
plugin=python3
; master=true
; vacuum=true
env=DJANGO_SETTINGS_MODULE=castellum_core.settings.stage
......@@ -19,7 +19,7 @@ services:
sh -c "cd castellum_core &&
make bootstrap &&
python castellum_core/manage.py collectstatic --no-input &&
python castellum_core/manage.py runserver 0.0.0.0:8000"
uwsgi uwsgi.ini"
volumes:
- .:/code
depends_on:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment