File size: 823 Bytes
ead0236 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 | FROM tsaridas/stremio-docker:latest
# Install Node.js and utilities for our proxy and debugging
RUN apk add --no-cache nodejs npm findutils grep netcat-openbsd
# Create a simple proxy server
WORKDIR /app
COPY proxy.js .
COPY proxy-only.js .
COPY stremio-minimal.js .
COPY startup.sh .
# Make the workspace writable
RUN chmod -R 777 /app
# Set environment variables for Stremio
ENV NO_CORS=1
ENV CASTING_DISABLED=1
ENV DISABLE_CACHING=1
ENV DEBUG=1
ENV NODE_ENV=production
ENV STREMIO_USER_DATA_DIR=/tmp/.stremio-server
ENV HOME=/tmp
# Create writable directory for Stremio server data
RUN mkdir -p /tmp/.stremio-server && \
chmod -R 777 /tmp/.stremio-server
# Make startup script executable
RUN chmod +x /app/startup.sh
# Expose HF Spaces port
EXPOSE 7860
# Use our custom startup script
CMD ["/app/startup.sh"] |