Skip to content

Commit bb507ee

Browse files
committed
fix: local docker build
1 parent 49550ab commit bb507ee

File tree

2 files changed

+1
-19
lines changed

2 files changed

+1
-19
lines changed

Diff for: bin/entrypoint.sh

-16
Original file line numberDiff line numberDiff line change
@@ -51,28 +51,12 @@ clean() {
5151
./resources
5252
}
5353

54-
install_dependencies() {
55-
# envsubst
56-
apk add gettext
57-
58-
# yq
59-
wget https://github.com/mikefarah/yq/releases/download/v4.40.7/yq_linux_amd64.tar.gz -O - |\
60-
tar xz && mv yq_linux_amd64 /usr/bin/yq
61-
62-
# global node modules
63-
npm install -g postcss postcss-cli @fullhuman/postcss-purgecss purgecss-whitelister flexsearch lodash
64-
}
65-
6654
prepare () {
6755
if [[ "$PREPARE" = true ]]; then
6856
clean
6957

7058
echo "=====> prepare phase"
7159

72-
if [[ "$DOCKER" = true ]]; then
73-
install_dependencies
74-
fi
75-
7660
hugo mod get -u
7761
hugo mod npm pack
7862

Diff for: docker-compose.yml

+1-3
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,9 @@ services:
33
image: floryn90/hugo:0.135.0-ext-alpine
44
ports:
55
- 1313:1313
6+
user: root:root
67
volumes:
78
- .:/src
8-
- /src/content
9-
- /src/resources
10-
- /src/node_modules
119
working_dir: /src
1210
environment:
1311
- DOCKER=true

0 commit comments

Comments
 (0)