Skip to content
Snippets Groups Projects
Select Git revision
  • c5dd3294fe908f26e6b02807d371bfccd0c8d9a7
  • test default protected
  • master protected
  • feat/custom-css
  • feat/redesign-improvements-10
  • feat/redesign-improvements-8
  • feat/redesign-fixes-3
  • feat/pirstan-changes
  • feat/separate-import-thread
  • feat/dary-improvements
  • features/add-pdf-page
  • features/add-typed-table
  • features/fix-broken-calendar-categories
  • features/add-embed-to-articles
  • features/create-mastodon-feed-block
  • features/add-custom-numbering-for-candidates
  • features/add-timeline
  • features/create-wordcloud-from-article-page
  • features/create-collapsible-extra-legal-info
  • features/extend-hero-banner
  • features/add-link-to-images
21 results

Dockerfile

Blame
  • Dockerfile 690 B
    # Use an official Python runtime as a parent image
    FROM python:3.7
    LABEL maintainer="hello@wagtail.io"
    
    # Set environment varibles
    ENV PYTHONUNBUFFERED 1
    ENV DJANGO_ENV dev
    
    COPY ./requirements.txt /code/requirements.txt
    RUN pip install --upgrade pip
    # Install any needed packages specified in requirements.txt
    RUN pip install -r /code/requirements.txt
    RUN pip install gunicorn
    
    # Copy the current directory contents into the container at /code/
    COPY . /code/
    # Set the working directory to /code/
    WORKDIR /code/
    
    RUN python manage.py migrate
    
    RUN useradd wagtail
    RUN chown -R wagtail /code
    USER wagtail
    
    EXPOSE 8000
    CMD exec gunicorn majak.wsgi:application --bind 0.0.0.0:8000 --workers 3