aboutsummaryrefslogtreecommitdiff
path: root/Dockerfile
diff options
context:
space:
mode:
authorChristine Dodrill <me@christine.website>2018-07-01 20:36:09 +0000
committerChristine Dodrill <me@christine.website>2018-07-01 20:36:09 +0000
commit920c0d303f9bce6207e221726bbacaa2022b540a (patch)
treeed26794d6eca41f004531e1a007d2a308635640e /Dockerfile
parent599712fab9127013e2d89dadabd839c847730637 (diff)
downloadxesite-920c0d303f9bce6207e221726bbacaa2022b540a.tar.xz
xesite-920c0d303f9bce6207e221726bbacaa2022b540a.zip
fix build
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile7
1 files changed, 4 insertions, 3 deletions
diff --git a/Dockerfile b/Dockerfile
index 1cacffa..93e7a6d 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,15 +1,16 @@
FROM xena/go:1.10 AS build
COPY . /root/go/src/github.com/Xe/site
-RUN GOBIN=/root go build github.com/Xe/site
+RUN CGO_ENABLED=0 GOBIN=/root go install github.com/Xe/site/cmd/site
FROM xena/alpine
EXPOSE 5000
RUN apk add --no-cache bash
COPY --from=build /root/site /site/site
+COPY ./static2 /site/static
COPY ./templates /site/templates
COPY ./blog /site/blog
-COPY ./run.sh /site.sh
-COPY ./static /site/static
+COPY ./css /site/css
+COPY ./run.sh /site/run.sh
HEALTHCHECK CMD curl --fail http://127.0.0.1:5000 || exit 1
CMD /site/run.sh