Smaller docker image

This commit is contained in:
Alexandre Vicenzi 2020-02-18 22:09:38 +01:00
parent 81ec1fd536
commit 617de6b120
2 changed files with 7 additions and 5 deletions

View File

@ -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

View File

@ -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