mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Merge pull request #1607 from SchrodingersGat/docker-paths
Docker: Add parent directories if they do not exist
This commit is contained in:
commit
817287a26c
@ -41,9 +41,10 @@ LABEL org.label-schema.schema-version="1.0" \
|
|||||||
|
|
||||||
# Create user account
|
# Create user account
|
||||||
RUN addgroup -S inventreegroup && adduser -S inventree -G inventreegroup
|
RUN addgroup -S inventreegroup && adduser -S inventree -G inventreegroup
|
||||||
|
|
||||||
WORKDIR ${INVENTREE_HOME}
|
WORKDIR ${INVENTREE_HOME}
|
||||||
|
|
||||||
RUN mkdir ${INVENTREE_STATIC_ROOT}
|
RUN mkdir -p ${INVENTREE_STATIC_ROOT}
|
||||||
|
|
||||||
# Install required system packages
|
# Install required system packages
|
||||||
RUN apk add --no-cache git make bash \
|
RUN apk add --no-cache git make bash \
|
||||||
|
@ -3,12 +3,12 @@
|
|||||||
# Create required directory structure (if it does not already exist)
|
# Create required directory structure (if it does not already exist)
|
||||||
if [[ ! -d "$INVENTREE_STATIC_ROOT" ]]; then
|
if [[ ! -d "$INVENTREE_STATIC_ROOT" ]]; then
|
||||||
echo "Creating directory $INVENTREE_STATIC_ROOT"
|
echo "Creating directory $INVENTREE_STATIC_ROOT"
|
||||||
mkdir $INVENTREE_STATIC_ROOT
|
mkdir -p $INVENTREE_STATIC_ROOT
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ ! -d "$INVENTREE_MEDIA_ROOT" ]]; then
|
if [[ ! -d "$INVENTREE_MEDIA_ROOT" ]]; then
|
||||||
echo "Creating directory $INVENTREE_MEDIA_ROOT"
|
echo "Creating directory $INVENTREE_MEDIA_ROOT"
|
||||||
mkdir $INVENTREE_MEDIA_ROOT
|
mkdir -p $INVENTREE_MEDIA_ROOT
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Check if "config.yaml" has been copied into the correct location
|
# Check if "config.yaml" has been copied into the correct location
|
||||||
|
@ -3,12 +3,12 @@
|
|||||||
# Create required directory structure (if it does not already exist)
|
# Create required directory structure (if it does not already exist)
|
||||||
if [[ ! -d "$INVENTREE_STATIC_ROOT" ]]; then
|
if [[ ! -d "$INVENTREE_STATIC_ROOT" ]]; then
|
||||||
echo "Creating directory $INVENTREE_STATIC_ROOT"
|
echo "Creating directory $INVENTREE_STATIC_ROOT"
|
||||||
mkdir $INVENTREE_STATIC_ROOT
|
mkdir -p $INVENTREE_STATIC_ROOT
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ ! -d "$INVENTREE_MEDIA_ROOT" ]]; then
|
if [[ ! -d "$INVENTREE_MEDIA_ROOT" ]]; then
|
||||||
echo "Creating directory $INVENTREE_MEDIA_ROOT"
|
echo "Creating directory $INVENTREE_MEDIA_ROOT"
|
||||||
mkdir $INVENTREE_MEDIA_ROOT
|
mkdir -p $INVENTREE_MEDIA_ROOT
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Check if "config.yaml" has been copied into the correct location
|
# Check if "config.yaml" has been copied into the correct location
|
||||||
|
Loading…
Reference in New Issue
Block a user