From 9114ec7755fad2653d6093acd3839ec2dbe489a0 Mon Sep 17 00:00:00 2001 From: mo khan Date: Mon, 14 Apr 2025 13:33:40 -0600 Subject: chore: update docker image to bind to port 80 by default --- Dockerfile | 4 ++-- Makefile | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index bbcdffc..7e26056 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,11 +4,11 @@ ENV CGO_ENABLED=0 WORKDIR /app COPY . ./ RUN make build && mv ./sparkled /bin/sparkled -EXPOSE 8080 CMD ["/bin/sparkled"] FROM scratch -ENV BIND_ADDR=":8080" +ENV BIND_ADDR=":http" +EXPOSE 80 WORKDIR /var/www/ COPY --from=build /bin/sparkled /bin/sparkled COPY --from=build /app/public /var/www/public diff --git a/Makefile b/Makefile index 2d84a7d..fbb7183 100644 --- a/Makefile +++ b/Makefile @@ -29,7 +29,7 @@ run: build BIND_ADDR=:8080 ./sparkled run-image: build-image - @docker run -p 8080:8080 -it $(IMAGE_TAG) + @docker run -p 8080:80 -it $(IMAGE_TAG) sh-image: build-builder-image @docker run -it $(IMAGE_TAG) /bin/sh -- cgit v1.2.3