Files
RRBEC/Dockerfile

18 lines
335 B
Docker

FROM python:3
WORKDIR /app
COPY requirements.txt ./
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
RUN python gestaoRaul/manage.py collectstatic --noinput
RUN python gestaoRaul/manage.py makemigrations --noinput
WORKDIR /app/gestaoRaul
CMD [ "gunicorn", "gestaoRaul.wsgi:application", "--bind", "0.0.0.0:8000" ]