You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
datasketch-io/services/cms/Dockerfile

22 lines
433 B
Docker

6 years ago
FROM python:3.7
LABEL maintainer="drew@androiddrew.comw"
ENV PYTHONUNBUFFERED 1
ENV DJANGO_ENV production
6 years ago
COPY ./requirements.txt /code/requirements.txt
RUN pip install -r /code/requirements.txt
RUN pip install gunicorn
COPY . /code/
WORKDIR /code/
RUN python manage.py collectstatic
6 years ago
RUN useradd wagtail
RUN chown -R wagtail /code
USER wagtail
EXPOSE 8000
CMD exec gunicorn cms.wsgi:application --bind 0.0.0.0:8000 --workers 3