Skip to content

Commit

Permalink
Move chmod command to entrypoint script and apk --no-cache (metabase#…
Browse files Browse the repository at this point in the history
  • Loading branch information
flamber authored and camsaul committed Dec 3, 2019
1 parent ff648c0 commit 282a92b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 1 addition & 2 deletions bin/docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,10 @@ ENV FC_LANG en-US
ENV LC_CTYPE en_US.UTF-8

# dependencies
RUN apk add --update bash ttf-dejavu fontconfig
RUN apk add --no-cache bash ttf-dejavu fontconfig

# add Metabase jar
COPY ./metabase.jar /app/
RUN chmod o+r /app/metabase.jar

# add our run script to the image
COPY ./run_metabase.sh /app/
Expand Down
3 changes: 3 additions & 0 deletions bin/docker/run_metabase.sh
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,9 @@ if [ ! -z "$JAVA_TIMEZONE" ]; then
JAVA_OPTS="${JAVA_OPTS} -Duser.timezone=${JAVA_TIMEZONE}"
fi

# Ensure JAR file is world readable
chmod o+r /app/metabase.jar

# Initialize the Metabase db from H2 dump, if available
INITIAL_DB=$(ls /app/initial*.db 2> /dev/null | head -n 1)
if [ -f "${INITIAL_DB}" ]; then
Expand Down

0 comments on commit 282a92b

Please sign in to comment.