anchor.diff:      gcc libgcc g++ libstdc++ \
       libjpeg-turbo libjpeg-turbo-dev jpeg jpeg-dev \
       libffi libffi-dev \
  -    zlib zlib-dev
  -
  -# Cairo deps for WeasyPrint (these will be deprecated once WeasyPrint drops cairo requirement)
  -RUN apk add --no-cache cairo cairo-dev pango pango-dev
  -RUN apk add --no-cache fontconfig ttf-droid ttf-liberation ttf-dejavu ttf-opensans ttf-ubuntu-font-family font-croscore font-noto
  -
  -# Python
  -RUN apk add --no-cache python3 python3-dev py3-pip
  -
  -# SQLite support
  -RUN apk add --no-cache sqlite
  -
  -# PostgreSQL support
  -RUN apk add --no-cache postgresql postgresql-contrib postgresql-dev libpq
  -
  -# MySQL support
  -RUN apk add --no-cache mariadb-connector-c mariadb-dev mariadb-client
  +    zlib zlib-dev \
  +    # Cairo deps for WeasyPrint (these will be deprecated once WeasyPrint drops cairo requirement)
  +    cairo cairo-dev pango pango-dev \
  +    # Fonts
  +    fontconfig ttf-droid ttf-liberation ttf-dejavu ttf-opensans ttf-ubuntu-font-family font-croscore font-noto \
  +    # Core python
  +    python3 python3-dev py3-pip \
  +    # SQLite support
  +    sqlite \
  +    # PostgreSQL support
  +    postgresql postgresql-contrib postgresql-dev libpq \
  +    # MySQL/MariaDB support
  +    mariadb-connector-c mariadb-dev mariadb-client
   
   # Install required python packages
   RUN pip install --no-cache-dir -U psycopg2 mysqlclient pgcli mariadb
   
  +ENTRYPOINT ["/sbin/tini", "--"]
  +
   FROM base as production
  +
   # Clone source code
   RUN echo "Downloading InvenTree from ${INVENTREE_GIT_REPO}"
   
  
positive.code: # So from here, we don't actually "do" anything, apart from some file management
  
  ENV INVENTREE_DEV_DIR="${INVENTREE_HOME}/dev"
  
  # Override default path settings
  ENV INVENTREE_STATIC_ROOT="${INVENTREE_DEV_DIR}/static"
  
negative.code: 
  WORKDIR ${INVENTREE_HOME}
  
  # Entrypoint
  ENTRYPOINT ./docker/init-server.sh
  
  # Launch the development server
  CMD ["python3 manage.py runserver ${INVENTREE_WEB_ADDR}:${INVENTREE_WEB_PORT}"]
  