File size: 513 Bytes
94f0697 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | FROM alpine:3.21
RUN apk add --no-cache ca-certificates tzdata redis wget bash
ARG VERSION=0.1.106
RUN wget -qO /tmp/sub2api.tar.gz "https://github.com/Wei-Shaw/sub2api/releases/download/v${VERSION}/sub2api_${VERSION}_linux_amd64.tar.gz" \
&& tar xzf /tmp/sub2api.tar.gz -C /usr/local/bin/ \
&& rm /tmp/sub2api.tar.gz \
&& chmod +x /usr/local/bin/sub2api
RUN mkdir -p /app/data /app/resources
WORKDIR /app
COPY start.sh /app/start.sh
RUN chmod +x /app/start.sh
EXPOSE 7860
CMD ["/app/start.sh"]
|