Skip to content

Commit 5a9cc51

Browse files
committed
fix: dockerfile
1 parent a3f5946 commit 5a9cc51

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

cloudrun.Dockerfile

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,17 @@ FROM alpine:latest
1919
# Install ca-certificates for HTTPS requests
2020
RUN apk --no-cache add ca-certificates tzdata
2121

22-
WORKDIR /root/
23-
24-
# Copy the binary from builder stage
25-
COPY --from=builder /app/voiceflow-cli .
26-
2722
# Create a non-root user
2823
RUN adduser -D -s /bin/sh voiceflow
24+
25+
WORKDIR /app
26+
27+
# Copy the binary from builder stage and set proper ownership
28+
COPY --from=builder --chown=voiceflow:voiceflow /app/voiceflow-cli .
29+
30+
# Make sure the binary is executable
31+
RUN chmod +x voiceflow-cli
32+
2933
USER voiceflow
3034

3135
# Expose port for the server
@@ -36,4 +40,4 @@ ENV PORT=8080
3640
ENV GIN_MODE=release
3741

3842
# Run the binary
39-
CMD ["./voiceflow-cli", "server", "--port", "8080"]
43+
CMD ["/app/voiceflow-cli", "server", "--port", "8080"]

0 commit comments

Comments
 (0)