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:
|
||||
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
|
||||
|
|
Loading…
Reference in New Issue