You've already forked img-proxy-url-generator
Added web service
This commit is contained in:
21
Dockerfile
Normal file
21
Dockerfile
Normal 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"]
|
||||
Reference in New Issue
Block a user