Skip to content
Snippets Groups Projects
Commit 282a92be authored by hansen's avatar hansen Committed by Cam Saul
Browse files

Move chmod command to entrypoint script and apk --no-cache (#11416)

parent ff648c0a
No related branches found
No related tags found
No related merge requests found
......@@ -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/
......
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment