mirror of
https://github.com/TeamPiped/RYD-Proxy.git
synced 2024-08-14 23:55:54 +00:00
Fix resource leak with http request response body & fix docker file (#16)
* 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
This commit is contained in:
parent
4d364ec4fc
commit
a6ec5b17e4
2 changed files with 12 additions and 7 deletions
|
@ -9,11 +9,13 @@ RUN --mount=type=cache,target=/root/.cache/go-build \
|
|||
|
||||
FROM alpine
|
||||
|
||||
RUN apk --no-cache add --no-check-certificate ca-certificates \
|
||||
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" ]
|
||||
CMD "/ryd-proxy"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue