shelly-proxy/Dockerfile

24 lines
397 B
Docker
Raw Normal View History

2023-08-10 12:17:26 +02:00
FROM golang:alpine as builder
RUN apk add --no-cache \
git
WORKDIR /app
ARG COMMIT=latest
RUN GOBIN=/app go install git.siteop.biz/shoopea/shelly-proxy@$COMMIT
2023-08-10 12:17:26 +02:00
FROM alpine:latest
RUN apk add --no-cache \
libstdc++
WORKDIR /app/
# Copy the Pre-built binary file from the previous stage
COPY --from=builder /app/shelly-proxy .
# Command to run the executable
CMD ["./shelly-proxy"]