Skip to content

Commit

Permalink
308: Remove GOARCH and GOOS env varaible from Dockerfile. (#309)
Browse files Browse the repository at this point in the history
  • Loading branch information
bartossh authored Nov 21, 2023
1 parent 7ec68be commit 5b41ac4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docker_deployment/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ ARG APPLICATION
WORKDIR /app
COPY . .
RUN cd src && go mod tidy
RUN cd src && GOOS=linux GOARCH=arm64 CGO_ENABLED=0 go build -a -installsuffix cgo -o ../bin/${APPLICATION}/main -ldflags="-s -w" cmd/${APPLICATION}/main.go
RUN cd src && CGO_ENABLED=0 go build -a -installsuffix cgo -o ../bin/${APPLICATION}/main -ldflags="-s -w" cmd/${APPLICATION}/main.go

FROM alpine AS app
ARG APPLICATION
Expand Down

0 comments on commit 5b41ac4

Please sign in to comment.