您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

12345678910111213
  1. FROM python:3.8-slim
  2. LABEL maintainer="LessPass <contact@lesspass.com>"
  3. LABEL name="LessPass Backend"
  4. RUN mkdir /opt/backend
  5. WORKDIR /opt/backend
  6. COPY requirements.txt /opt/backend
  7. RUN python -m pip install --no-cache-dir --upgrade pip
  8. RUN python -m pip install --no-cache-dir -r requirements.txt
  9. COPY . /opt/backend
  10. RUN python --version
  11. EXPOSE 8000
  12. ENTRYPOINT ["/opt/backend/entrypoint.sh"]
  13. CMD ["gunicorn", "lesspass.wsgi:application", "--access-logfile", "-", "--error-logfile", "-", "--log-level", "debug", "--bind", "0.0.0.0:8000"]