summaryrefslogtreecommitdiff
path: root/Dockerfile
diff options
context:
space:
mode:
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile14
1 files changed, 8 insertions, 6 deletions
diff --git a/Dockerfile b/Dockerfile
index a6dc8e5..55b6ded 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -5,11 +5,13 @@ WORKDIR /app
COPY . ./
RUN make build && mv ./sparkled /bin/sparkled
-FROM scratch
-ENV BIND_ADDR=":http"
-EXPOSE 80
+FROM envoyproxy/envoy:v1.33-latest
+ENV BIND_ADDR=":8080"
+EXPOSE 8080 10000 9901
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 /bin/sparkled /usr/local/bin/sparkled
COPY --from=build /app/public /var/www/public
-CMD ["/bin/sparkled"]
+COPY envoy.yml /etc/envoy/envoy.yaml
+COPY start.sh /start.sh
+RUN chmod +x /start.sh
+CMD ["/start.sh"]