Skip to content

Commit 57281b3

Browse files
committed
Updating backend build files
1 parent 5ecd87b commit 57281b3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

deployments/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ RUN go mod download && go mod verify
1414
COPY . .
1515

1616
# Build both applications with optimizations
17-
RUN CGO_ENABLED=0 GOOS=linux go build -ldflags="-w -s" -a -installsuffix cgo -o simulator ./cmd/simulator
18-
RUN CGO_ENABLED=0 GOOS=linux go build -ldflags="-w -s" -a -installsuffix cgo -o test-charger ./cmd/test-charger
17+
RUN CGO_ENABLED=1 GOOS=linux go build -ldflags="-w -s" -a -installsuffix cgo -o simulator ./cmd/simulator
18+
RUN CGO_ENABLED=1 GOOS=linux go build -ldflags="-w -s" -a -installsuffix cgo -o test-charger ./cmd/test-charger
1919

2020
FROM debian:bookworm-slim
2121

0 commit comments

Comments
 (0)