inception

This commit is contained in:
shoopea
2023-08-10 12:17:26 +02:00
commit 6381e9e35d
4 changed files with 348 additions and 0 deletions

23
Dockerfile Normal file
View File

@@ -0,0 +1,23 @@
FROM golang:alpine as builder
RUN apk add --no-cache \
git
WORKDIR /app
ARG COMMIT=latest
RUN GOBIN=/app go install github.com/shoopea/shelly-proxy@$COMMIT
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"]