dockerfile updates

This commit is contained in:
Christopher Bisset 2022-07-27 16:29:47 +10:00
parent 7f039c2b0f
commit d398ac8399
2 changed files with 3 additions and 3 deletions

View file

@ -43,7 +43,7 @@ WORKDIR /staging
# Copy across the scripts folder
COPY scripts/* ./scripts/
# Copy default caddy config from project root
COPY ../../Caddyfile /staging/Caddyfile
COPY ./Caddyfile /staging/Caddyfile
COPY --from=build /staging/${PROJECT_NAME}/build /web
RUN apk add --no-cache caddy

View file

@ -2,7 +2,7 @@
#----#
# placeholder for testing
while true; do sleep 1; done
# while true; do sleep 1; done
#----#
# check if /data/Caddyfile exists, copy across if not
@ -13,4 +13,4 @@ then
fi
echo "Starting Caddy"
/usr/bin/caddy run --adapter caddyfile --config /data/Caddyfile
/usr/sbin/caddy run --adapter caddyfile --config /data/Caddyfile