Skip to content
Snippets Groups Projects
Commit 617de6b1 authored by Alexandre Vicenzi's avatar Alexandre Vicenzi
Browse files

Smaller docker image

parent 81ec1fd5
Branches
No related tags found
No related merge requests found
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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment