Smaller docker image
This commit is contained in:
parent
81ec1fd536
commit
617de6b120
|
@ -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
|
||||||
|
|
|
@ -2,10 +2,10 @@ version: '3'
|
||||||
services:
|
services:
|
||||||
app:
|
app:
|
||||||
build: .
|
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
|
command: hugo server -v --bind "0.0.0.0" --port 1313 --watch -t soho
|
||||||
ports:
|
ports:
|
||||||
- "1313:1313"
|
- "1313:1313"
|
||||||
volumes:
|
volumes:
|
||||||
- ./exampleSite:/go/src/github.com/alexandrevicenzi/soho/exampleSite
|
- ./exampleSite:/blog
|
||||||
- .:/go/src/github.com/alexandrevicenzi/soho/exampleSite/themes/soho
|
- .:/blog/themes/soho
|
||||||
|
|
Loading…
Reference in New Issue