FROM gitea/gitea:1.11.4
EXPOSE 3020
EXPOSE 2222
COPY . ${WORKDIR}
COPY sbin/* /sbin/
RUN apk --no-cache add \
ca-certificates \
mysql-client \
py3-pip
RUN pip3 install --upgrade \
pip==20.0.2
# Note(decentral1se): https://github.com/pixelb/crudini/issues/58
RUN pip3 install --no-cache-dir \
"git+http://github.com/pixelb/crudini.git@0.9.3#egg=crudini" \
# Note(decentral1se): for RST rendering
RUN pip install py3-docutils
ENTRYPOINT ["/sbin/entrypoint.sh"]