Skip to content

Commit

Permalink
Smaller docker image
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandrevicenzi committed Feb 18, 2020
1 parent 81ec1fd commit 617de6b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
6 changes: 4 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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
6 changes: 3 additions & 3 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 617de6b

Please sign in to comment.