This commit is contained in:
@@ -38,6 +38,7 @@ apt-get update \
|
||||
redis-server \
|
||||
sane-utils \
|
||||
sudo \
|
||||
sed \
|
||||
supervisor \
|
||||
tesseract-ocr \
|
||||
# Remove make and build dependencies
|
||||
@@ -84,6 +85,8 @@ COPY --chown=mayan:mayan \
|
||||
|
||||
COPY --chown=mayan:mayan mayan /src/mayan
|
||||
|
||||
RUN sed '/st_mysql_options options;/a unsigned int reconnect;' /usr/include/mysql/mysql.h -i.bkp
|
||||
|
||||
# Install development packages needed to build the Python packages
|
||||
RUN DEBIAN_FRONTEND=noninteractive \
|
||||
apt-get install -y --no-install-recommends \
|
||||
@@ -126,8 +129,11 @@ RUN python -m virtualenv "${PROJECT_INSTALL_DIR}" \
|
||||
&& mayan-edms.py installjavascript \
|
||||
&& MAYAN_STATIC_ROOT=${PROJECT_INSTALL_DIR}/static mayan-edms.py preparestatic --link --noinput
|
||||
|
||||
RUN apt install -y tesseract-ocr-deu
|
||||
|
||||
COPY --chown=mayan:mayan requirements/testing-base.txt "${PROJECT_INSTALL_DIR}"
|
||||
|
||||
|
||||
####
|
||||
# Final image - BASE_IMAGE + Mayan install directory from the builder image
|
||||
####
|
||||
@@ -147,6 +153,7 @@ ENTRYPOINT ["entrypoint.sh"]
|
||||
EXPOSE 8000
|
||||
CMD ["mayan"]
|
||||
|
||||
|
||||
RUN ${PROJECT_INSTALL_DIR}/bin/mayan-edms.py platformtemplate supervisord_docker > /etc/supervisor/conf.d/mayan.conf \
|
||||
&& apt-get clean autoclean \
|
||||
&& apt-get autoremove --purge -y \
|
||||
|
||||
Reference in New Issue
Block a user