1234567891011121314151617181920212223 |
- FROM reg.home.base/yawyd/py310
- COPY static /app/static
- RUN mkdir /app/media
- RUN apt update -qq && apt install -y -qq nginx
- COPY deploy/nginx.conf /etc/nginx/
- COPY . /app
- COPY ./deploy/zengarden-cron /etc/cron.d/zengarden-cron
- RUN chmod 0644 /etc/cron.d/zengarden-cron
- RUN crontab /etc/cron.d/zengarden-cron
- RUN touch /var/log/cron.log
- WORKDIR /app
- RUN poetry config virtualenvs.in-project true
- RUN poetry install -q
- EXPOSE 80
- CMD ["./deploy/start.sh"]
|