summaryrefslogtreecommitdiff
path: root/Dockerfile
diff options
context:
space:
mode:
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Dockerfile b/Dockerfile
index 7e26056..a6dc8e5 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -4,12 +4,12 @@ ENV CGO_ENABLED=0
WORKDIR /app
COPY . ./
RUN make build && mv ./sparkled /bin/sparkled
-CMD ["/bin/sparkled"]
FROM scratch
ENV BIND_ADDR=":http"
EXPOSE 80
WORKDIR /var/www/
+COPY --from=build /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
COPY --from=build /bin/sparkled /bin/sparkled
COPY --from=build /app/public /var/www/public
CMD ["/bin/sparkled"]