Skip to content

Commit 93b058c

Browse files
committed
Refactor Dockerfile to streamline controller binary copy with executable permissions
1 parent 586cc7f commit 93b058c

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

Dockerfile

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,8 @@ RUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o update-controller
1717
# Runtime stage - use TF2 image as base for SteamCMD
1818
FROM ghcr.io/udl-tf/tf2-image:latest
1919

20-
# Copy the controller binary from builder
21-
COPY --from=builder /build/update-controller /usr/local/bin/update-controller
22-
23-
# Set permissions
24-
RUN chmod +x /usr/local/bin/update-controller
20+
# Copy the controller binary from builder with executable permissions
21+
COPY --from=builder --chmod=755 /build/update-controller /usr/local/bin/update-controller
2522

2623
USER ${USER}
2724

0 commit comments

Comments
 (0)