2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-12 18:15:40 +00:00

Refactor: Dockerimage (#5007)

* refactor docker image to reduce size

* Added required deps for database drivers

* Added alpine test dockerfile

* Readded image libs to Dockerfile

* Fix link in dockerfile

* Replaced Dockerfile

* Remove bash from image

* Added base target to Dockerfile

* Added missing mysql dev headers

* Add dev target back to Dockerfile

* fix: Dockerfile style

* Add old comments back to dockerfile

* Removed wrong comment

* Added back piwheels repo
This commit is contained in:
Lukas
2023-07-10 11:52:33 +02:00
committed by GitHub
parent 8fb7612894
commit 4a1f73331f
2 changed files with 45 additions and 50 deletions

View File

@ -1,9 +1,11 @@
#!/bin/bash
#!/bin/sh
# exit when any command fails
set -e
# Required to suppress some git errors further down the line
git config --global --add safe.directory /home/***
if command -v git &> /dev/null; then
git config --global --add safe.directory /home/***
fi
# Create required directory structure (if it does not already exist)
if [[ ! -d "$INVENTREE_STATIC_ROOT" ]]; then