Skip to content

Commit

Permalink
change default
Browse files Browse the repository at this point in the history
  • Loading branch information
ctrl-alt-lulz committed Jan 30, 2024
1 parent b986d08 commit 0af9821
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions docker/microservices/load_simulator/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,8 @@ ARG GOCACHE
ARG GOOS
ARG GOARCH
# manage dependencies
COPY apps/microservices/load_simulator ./

RUN --mount=type=cache,target=${GOMODCACHE} go mod download
COPY . .

RUN --mount=type=cache,target=${GOCACHE} CGO_ENABLED=1 GOOS=${GOOS} GOARCH=${GOARCH} go build -ldflags="-s -w" -o api apps/cookbooks/microservices/load_simulator/main.go
RUN GO_ENABLED=1 GOOS=${GOOS} GOARCH=${GOARCH} go build -ldflags="-s -w" -o api apps/cookbooks/microservices/load_simulator/main.go

FROM ubuntu:22.04
RUN apt-get update && apt-get install -y ca-certificates
Expand Down

0 comments on commit 0af9821

Please sign in to comment.