Added web service

This commit is contained in:
2024-11-17 09:19:31 -05:00
parent a773b38794
commit 4803855e61
6 changed files with 167 additions and 47 deletions

21
Dockerfile Normal file
View File

@@ -0,0 +1,21 @@
FROM siteworxpro/golang:latest AS build
WORKDIR /app
ADD . .
ENV GOPRIVATE=git.s.int
ENV GOPROXY=direct
ENV CGO_ENABLED=0
RUN go mod tidy && go build -o imgproxy .
FROM alpine AS runtime
EXPOSE 8080
WORKDIR /app
COPY --from=build /app/imgproxy /app/imgproxy
ENTRYPOINT ["/app/imgproxy", "server"]