fixed docker file placement
This commit is contained in:
@@ -34,7 +34,7 @@ runs:
|
||||
fi
|
||||
|
||||
docker buildx build \
|
||||
-f Dockerfile \
|
||||
-f build/dockerfile \
|
||||
--build-arg "GO_PROXY=$go_proxy" \
|
||||
--label "org.opencontainers.image.revision=$COMMIT_SHA" \
|
||||
--label "org.opencontainers.image.source=${GITHUB_SERVER_URL:-}" \
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
.PHONY: run test build
|
||||
.PHONY: run test build docker-build
|
||||
|
||||
run:
|
||||
go run ./cmd/server
|
||||
@@ -8,3 +8,6 @@ test:
|
||||
|
||||
build:
|
||||
go build -o teammate ./cmd/server
|
||||
|
||||
docker-build:
|
||||
docker build -f build/dockerfile -t hamkar:local .
|
||||
|
||||
@@ -77,7 +77,7 @@ Place a TLS reverse proxy such as Caddy or nginx in front of the binary. Back up
|
||||
The multi-stage image runs tests during the build, compiles a static Go binary, uses a non-root runtime user, persists SQLite under `/data`, and exposes a `/healthz` container health check.
|
||||
|
||||
```bash
|
||||
docker build -t hamkar:local .
|
||||
docker build -f build/dockerfile -t hamkar:local .
|
||||
docker run --rm -p 8080:8080 \
|
||||
-e SESSION_SECURE=false \
|
||||
-e INITIAL_ADMIN_PASSWORD='replace-this-password' \
|
||||
|
||||
Reference in New Issue
Block a user