Skip to content

Commit

Permalink
fix: Build images with race. WIP create 2 types of images, one with r…
Browse files Browse the repository at this point in the history
…ace other without
Matovidlo committed Nov 28, 2024
1 parent e97e03d commit 69bbde6
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -35,7 +35,7 @@ run-templates-api:
air -c ./provisioning/templates-api/dev/.air-api.toml

build-stream-service:
CGO_ENABLED=0 go build -v -mod mod -ldflags "-s -w" -o "$(or $(BUILD_TARGET_PATH), ./target/stream/service)" ./cmd/stream
CGO_ENABLED=1 go build -race -v -mod mod -ldflags "-s -w" -o "$(or $(BUILD_TARGET_PATH), ./target/stream/service)" ./cmd/stream

build-stream-service-with-race:
CGO_ENABLED=1 go build -race -v -mod mod -ldflags "-s -w" -o "$(or $(BUILD_TARGET_PATH), ./target/stream/service)" ./cmd/stream
1 change: 1 addition & 0 deletions provisioning/stream/docker/service/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Build container
FROM golang:1.23.3-alpine3.20 AS buildContainer
RUN apk add -U --no-cache bash make curl
RUN apk add --no-cache --update gcc g++
WORKDIR /app

COPY Makefile Makefile

0 comments on commit 69bbde6

Please sign in to comment.