summaryrefslogtreecommitdiff
path: root/Dockerfile
diff options
context:
space:
mode:
authormo khan <mo@mokhan.ca>2025-05-08 12:42:28 -0600
committermo khan <mo@mokhan.ca>2025-05-08 12:42:28 -0600
commit52423eda4ad61eb4186988809e68439bd548fd79 (patch)
tree9ce83ac37b9b8b9e55cdb0cc3e738823cb13e164 /Dockerfile
parent5c57787f312597f8dcc61922da9428ca745eb067 (diff)
chore: bundle envoy with sparkle
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"]