Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/alexandrevicenzi/soho.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexandre Vicenzi <vicenzi.alexandre@gmail.com>2020-02-19 00:09:38 +0300
committerAlexandre Vicenzi <vicenzi.alexandre@gmail.com>2020-02-19 00:09:38 +0300
commit617de6b1209ca5f924bc68e3fd9988833547b1c4 (patch)
treedfb62fec0cf501fb97a676d9ddc2b29e671c0bc8
parent81ec1fd536684413999f8b341eaf7bc27beeef2c (diff)
Smaller docker image
-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