You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

18 rivejä
550 B

  1. FROM python:3.6
  2. LABEL name="LessPass Backend"
  3. LABEL maintainer="LessPass <contact@lesspass.com>"
  4. RUN mkdir /opt/app
  5. WORKDIR /opt/app
  6. RUN python -m venv /opt/app/venv
  7. COPY requirements.txt /opt/app/
  8. RUN /opt/app/venv/bin/python -m pip install --upgrade pip && \
  9. /opt/app/venv/bin/python -m pip install -r requirements.txt
  10. COPY . /opt/app/
  11. ENTRYPOINT ["/opt/app/entrypoint.sh"]
  12. CMD ["/opt/app/venv/bin/gunicorn", "lesspass.wsgi:application", "--access-logfile", "-", "--error-logfile", "-", "--log-level", "debug", "--bind", "0.0.0.0:8000"]