Skip to content
Snippets Groups Projects
Commit aacad89b authored by jackie / Andrea Ida Malkah Klaura's avatar jackie / Andrea Ida Malkah Klaura
Browse files

adapt Dockerfile for current aura setup

parent 4eb41ea1
No related branches found
No related tags found
1 merge request!13Adaptation for an AuRa wide docker setup
FROM python:3.6 FROM python:3.8 AS base
COPY requirements.txt /tmp/ ENV PYTHONUNBUFFERED=1
RUN pip install --no-cache-dir -r /tmp/requirements.txt WORKDIR /aura
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
#RUN python /tmp/manage.py migrate EXPOSE 8000
#ENTRYPOINT ["/tmp/entrypoint.sh"]
# Superuser parameters are --username USERNAME and --email EMAIL but there is no password
# RUN python /tmp/manage.py createsuperuser FROM base AS dev
#VOLUME .
CMD ["python", "manage.py", "runserver", "0.0.0.0:8000" ]
FROM base AS prod
COPY . .
CMD ["sh", "-c", "gunicorn -b 0.0.0.0:8000 -w $(nproc) pv.wsgi"]
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment