lastchance / Dockerfile
aarmn's picture
Create Dockerfile
08150b1 verified
Raw
History Blame Contribute Delete
562 Bytes
FROM python:3.11-slim
RUN apt-get update && apt-get install -y --no-install-recommends curl && \
rm -rf /var/lib/apt/lists/* && \
curl -L -o /tmp/gost.tar.gz https://github.com/go-gost/gost/releases/latest/download/gost_3.2.6_linux_amd64.tar.gz && \
tar -xzf /tmp/gost.tar.gz -C /usr/local/bin gost && \
chmod +x /usr/local/bin/gost && \
rm -f /tmp/gost.tar.gz && \
pip install --no-cache-dir fastapi uvicorn
COPY start.sh /start.sh
COPY app.py /app.py
COPY index.html /index.html
RUN chmod +x /start.sh
EXPOSE 7860
CMD ["/start.sh"]