Spaces:
Paused
Paused
Delete Dockerfile
Browse files- Dockerfile +0 -27
Dockerfile
DELETED
|
@@ -1,27 +0,0 @@
|
|
| 1 |
-
FROM golang:1.24.1-alpine3.20 AS builder
|
| 2 |
-
WORKDIR /app
|
| 3 |
-
RUN apk add --no-cache git make gcc musl-dev sqlite-dev
|
| 4 |
-
RUN git clone https://github.com/hsp1020/stremthru.git .
|
| 5 |
-
RUN go mod download && make build
|
| 6 |
-
|
| 7 |
-
FROM alpine:3.20
|
| 8 |
-
WORKDIR /app
|
| 9 |
-
COPY --from=builder /app/stremthru .
|
| 10 |
-
|
| 11 |
-
RUN apk add --no-cache libc6-compat sqlite && \
|
| 12 |
-
mkdir -p /app/data && \
|
| 13 |
-
touch /app/data/stremthru.db && \
|
| 14 |
-
chown -R 1000:1000 /app/data && \
|
| 15 |
-
chmod -R 755 /app/data
|
| 16 |
-
|
| 17 |
-
# Hugging Face ํธํ์ฑ ์ค์
|
| 18 |
-
ENV PORT=7860
|
| 19 |
-
ENV STREMTHRU_DATA_DIR=/app/data
|
| 20 |
-
EXPOSE 7860
|
| 21 |
-
|
| 22 |
-
USER 1000
|
| 23 |
-
# Dockerfile ์์ (ํฌํธ ๊ฐ์ ์ง์ )
|
| 24 |
-
ENTRYPOINT ["sh", "-c", "./stremthru --port 7860 --bind 0.0.0.0"]
|
| 25 |
-
# HEALTHCHECK ์ถ๊ฐ (Dockerfile ์ตํ๋จ)
|
| 26 |
-
HEALTHCHECK --interval=30s --timeout=3s \
|
| 27 |
-
CMD wget --quiet --tries=1 --spider http://localhost:7860 || exit 1
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|