Fix bug caused by bad permissions and files
This commit is contained in:
parent
3ebb9dda35
commit
4fcaddb2e3
|
@ -10,8 +10,9 @@ RUN adduser \
|
||||||
--gecos "" \
|
--gecos "" \
|
||||||
--uid 1000 \
|
--uid 1000 \
|
||||||
hugo
|
hugo
|
||||||
RUN chown hugo:hugo /app
|
|
||||||
USER hugo
|
|
||||||
|
|
||||||
CMD hugo server --bind 0.0.0.0
|
|
||||||
COPY . /app
|
COPY . /app
|
||||||
|
RUN chown -R hugo:hugo /app
|
||||||
|
|
||||||
|
USER hugo
|
||||||
|
CMD hugo server --bind 0.0.0.0
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
version="0.2.0"
|
version="0.2.1"
|
||||||
script_dir=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
|
script_dir=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
|
||||||
tmp_dir="$(mktemp -d --suffix=-web)"
|
tmp_dir="$(mktemp -d --suffix=-web)"
|
||||||
cleanup () { rm -Rfv "$tmp_dir"; }
|
cleanup () { rm -Rfv "$tmp_dir"; }
|
||||||
|
@ -22,4 +22,6 @@ if [[ "$latest_theme_tag_name" != "$previous_theme_tag_name" ]]; then
|
||||||
echo "$latest_theme_release_metadata" >"$release_json"
|
echo "$latest_theme_release_metadata" >"$release_json"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
rm -R resources .hugo_build.lock
|
||||||
|
|
||||||
docker build "$script_dir" -f Containerfile -t jilits/website:latest -t jilits/website:$version -t cr.jilits.se/jilits/website:$version
|
docker build "$script_dir" -f Containerfile -t jilits/website:latest -t jilits/website:$version -t cr.jilits.se/jilits/website:$version
|
||||||
|
|
Loading…
Reference in New Issue