FROM docker.io/pretix/standalone:2024.7.0
USER root
COPY entrypoint.sh /
RUN true \
&& chmod +x /entrypoint.sh \
&& touch /etc/pretix/pretix.cfg \
&& chown pretixuser /etc/pretix/pretix.cfg \
&& true
USER pretixuser
ENTRYPOINT ["/entrypoint.sh"]