summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Dockerfile6
-rw-r--r--docker-compose.yml6
2 files changed, 7 insertions, 5 deletions
diff --git a/Dockerfile b/Dockerfile
index 61db97b..6cc95d5 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,3 +1,5 @@
-FROM golang:latest
+FROM alpine:latest
-RUN go get -v github.com/gohugoio/hugo
+RUN apk add hugo
+
+USER 1000:1000
diff --git a/docker-compose.yml b/docker-compose.yml
index 0cf6b82..f8f380f 100644
--- a/docker-compose.yml
+++ b/docker-compose.yml
@@ -2,10 +2,10 @@ version: '3'
services:
app:
build: .
- working_dir: /go/src/github.com/alexandrevicenzi/soho/exampleSite
+ working_dir: /blog
command: hugo server -v --bind "0.0.0.0" --port 1313 --watch -t soho
ports:
- "1313:1313"
volumes:
- - ./exampleSite:/go/src/github.com/alexandrevicenzi/soho/exampleSite
- - .:/go/src/github.com/alexandrevicenzi/soho/exampleSite/themes/soho
+ - ./exampleSite:/blog
+ - .:/blog/themes/soho