Include uwsgi installation in Dockerfile
This commit is contained in:
parent
deb804bd32
commit
fdadf0f4bb
1 changed files with 4 additions and 1 deletions
|
@ -12,6 +12,9 @@ WORKDIR /app
|
|||
COPY ./requirements.txt /app/requirements.txt
|
||||
RUN pip install -r requirements.txt
|
||||
|
||||
# Install uwsgi
|
||||
RUN pip install uwsgi
|
||||
|
||||
# Copy the project files into the working directory
|
||||
COPY . /app/
|
||||
|
||||
|
@ -19,4 +22,4 @@ COPY . /app/
|
|||
RUN python manage.py collectstatic --noinput
|
||||
|
||||
# Run uWSGI with Unix socket
|
||||
CMD ["uwsgi", "--socket", ":8000", "--module", "myapp.wsgi:application"]
|
||||
CMD ["uwsgi", "--ini", "uwsgi.ini"]
|
||||
|
|
Loading…
Reference in a new issue