Rename config vars. Add widget holder template and endpoint to serve it. Add dockerfile
This commit is contained in:
24
Dockerfile
Normal file
24
Dockerfile
Normal file
@@ -0,0 +1,24 @@
|
||||
FROM golang:1.26-alpine3.23 AS build
|
||||
|
||||
WORKDIR /payoutsbuild
|
||||
|
||||
RUN apk add --update --no-cache ca-certificates git
|
||||
|
||||
ENV GOBIN=/payoutsbuild/bin
|
||||
|
||||
ADD . /payoutsbuild
|
||||
|
||||
RUN cd /payoutsbuild && \
|
||||
go mod download && \
|
||||
go build ./cmd/...
|
||||
|
||||
FROM alpine:3.23
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY --from=build /payoutsbuild/payouts /app/
|
||||
COPY --from=build /payoutsbuild/config/payouts.properties /app/
|
||||
|
||||
EXPOSE 8080
|
||||
|
||||
ENTRYPOINT [ "/app/payouts" ]
|
||||
Reference in New Issue
Block a user