mirror of
https://github.com/TeamPiped/RYD-Proxy.git
synced 2024-12-12 21:30:40 +05:30
a6ec5b17e4
* Add support for videoId query flags * Update README examples * Fix resource leak * Close body on 429 & fix docker file with use of fiber prefork * Add dumb-init to line 12
22 lines
376 B
Docker
22 lines
376 B
Docker
FROM golang:alpine AS build
|
|
|
|
WORKDIR /app/
|
|
|
|
COPY . .
|
|
|
|
RUN --mount=type=cache,target=/root/.cache/go-build \
|
|
go build -ldflags "-s -w" main.go
|
|
|
|
FROM alpine
|
|
|
|
RUN apk --no-cache add --no-check-certificate ca-certificates dumb-init \
|
|
&& update-ca-certificates
|
|
|
|
|
|
COPY --from=build /app/main /ryd-proxy
|
|
|
|
ENTRYPOINT ["/usr/bin/dumb-init", "--"]
|
|
|
|
EXPOSE 3000
|
|
CMD "/ryd-proxy"
|