fixed docker file placement

This commit is contained in:
2026-07-28 14:47:25 +03:30
parent d94ba86953
commit cbb59010bd
4 changed files with 6 additions and 3 deletions
+1 -1
View File
@@ -34,7 +34,7 @@ runs:
fi fi
docker buildx build \ docker buildx build \
-f Dockerfile \ -f build/dockerfile \
--build-arg "GO_PROXY=$go_proxy" \ --build-arg "GO_PROXY=$go_proxy" \
--label "org.opencontainers.image.revision=$COMMIT_SHA" \ --label "org.opencontainers.image.revision=$COMMIT_SHA" \
--label "org.opencontainers.image.source=${GITHUB_SERVER_URL:-}" \ --label "org.opencontainers.image.source=${GITHUB_SERVER_URL:-}" \
+4 -1
View File
@@ -1,4 +1,4 @@
.PHONY: run test build .PHONY: run test build docker-build
run: run:
go run ./cmd/server go run ./cmd/server
@@ -8,3 +8,6 @@ test:
build: build:
go build -o teammate ./cmd/server go build -o teammate ./cmd/server
docker-build:
docker build -f build/dockerfile -t hamkar:local .
+1 -1
View File
@@ -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. 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 ```bash
docker build -t hamkar:local . docker build -f build/dockerfile -t hamkar:local .
docker run --rm -p 8080:8080 \ docker run --rm -p 8080:8080 \
-e SESSION_SECURE=false \ -e SESSION_SECURE=false \
-e INITIAL_ADMIN_PASSWORD='replace-this-password' \ -e INITIAL_ADMIN_PASSWORD='replace-this-password' \
View File