Dockerfile 460 B

1234567891011121314151617181920212223
  1. FROM reg.home.base/yawyd/py310
  2. COPY static /app/static
  3. RUN mkdir /app/media
  4. RUN apt update -qq && apt install -y -qq nginx
  5. COPY deploy/nginx.conf /etc/nginx/
  6. COPY . /app
  7. COPY ./deploy/zengarden-cron /etc/cron.d/zengarden-cron
  8. RUN chmod 0644 /etc/cron.d/zengarden-cron
  9. RUN crontab /etc/cron.d/zengarden-cron
  10. RUN touch /var/log/cron.log
  11. WORKDIR /app
  12. RUN poetry config virtualenvs.in-project true
  13. RUN poetry install -q
  14. EXPOSE 80
  15. CMD ["./deploy/start.sh"]