diff options
author | Alexandre Vicenzi <vicenzi.alexandre@gmail.com> | 2020-02-19 00:09:38 +0300 |
---|---|---|
committer | Alexandre Vicenzi <vicenzi.alexandre@gmail.com> | 2020-02-19 00:09:38 +0300 |
commit | 617de6b1209ca5f924bc68e3fd9988833547b1c4 (patch) | |
tree | dfb62fec0cf501fb97a676d9ddc2b29e671c0bc8 | |
parent | 81ec1fd536684413999f8b341eaf7bc27beeef2c (diff) |
Smaller docker image
-rw-r--r-- | Dockerfile | 6 | ||||
-rw-r--r-- | docker-compose.yml | 6 |
2 files changed, 7 insertions, 5 deletions
@@ -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 |