Skip to content
Snippets Groups Projects
Select Git revision
  • 3ca570a543f2a45babff00ace1fb13b4d027bd6d
  • master default protected
  • feat/new-image-formats
  • clickable-select-chevron
  • 2.20.0
  • 2.19.0
  • 2.18.0
  • 2.17.0
  • 2.16.1
  • 2.16.0
  • 2.15.0
  • 2.14.0
  • 2.13.0
  • 2.12.1
  • 2.11.0
  • 2.10.0
  • 2.9.1
  • 2.9.0
  • 2.8.0
  • 2.7.1
  • 2.7.0
  • 2.6.0
  • 2.5.2
  • 2.5.1
24 results

1.1.2.tgz

Blame
  • Dockerfile 765 B
    FROM python:3.10
    
    RUN mkdir /app
    WORKDIR /app
    
    RUN curl -fsSL https://deb.nodesource.com/setup_19.x | bash -
    RUN apt-get install nodejs && rm -rf /var/lib/apt/lists/*
    
    COPY . .
    
    RUN pip install -r requirements/base.txt -r requirements/production.txt
    RUN npm install
    RUN npm run build
    
    # Placeholder values so the static files collect
    RUN DATABASE_URL=postgres://x/x \
        SECRET_KEY=x \
        ALLOWED_HOSTS=x \
        CHOBOTNICE_RV_GID=x \
        python manage.py collectstatic --noinput --settings=rybicka.settings.production
    
    RUN bash -c "adduser --disabled-login --quiet --gecos app app &&  \
                 chmod -R o+r /app/ && \
                 chmod o+x /app/run.sh"
    USER app
    
    ENV DJANGO_SETTINGS_MODULE "rybicka.settings.production"
    
    EXPOSE 8000
    
    CMD ["bash", "run.sh"]