diff options
| author | mo khan <mo@mokhan.ca> | 2025-04-14 13:30:19 -0600 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2025-04-14 13:30:19 -0600 |
| commit | e5f477e4324b3ae2d8b8df1eeefc59d1d70a6098 (patch) | |
| tree | 6b988767151211c54ca4decdd23ebb9ea27c64b1 | |
| parent | 37ba0e25b1760778d1edda25b84ff43023670eae (diff) | |
chore: bind to port 8080 by default
| -rw-r--r-- | Dockerfile | 2 | ||||
| -rw-r--r-- | Makefile | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -1,6 +1,5 @@ # syntax=docker/dockerfile:1 FROM golang:1.24.0 AS build -ENV BIND_ADDR=":8080" ENV CGO_ENABLED=0 WORKDIR /app COPY . ./ @@ -9,6 +8,7 @@ EXPOSE 8080 CMD ["/bin/sparkled"] FROM scratch +ENV BIND_ADDR=":8080" WORKDIR /var/www/ COPY --from=build /bin/sparkled /bin/sparkled COPY --from=build /app/public /var/www/public @@ -29,7 +29,7 @@ run: build BIND_ADDR=:8080 ./sparkled run-image: build-image - @docker run -it $(IMAGE_TAG) + @docker run -p 8080:8080 -it $(IMAGE_TAG) sh-image: build-builder-image @docker run -it $(IMAGE_TAG) /bin/sh |
