Create Dockerfile
Browse files- Dockerfile +24 -0
Dockerfile
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Hugging Face Spaces CPU Basic: only the Streamlit UI, research retrieval & audits.
|
| 2 |
+
# No paid model API; never attempts to load the 17GB Muse Glimmer checkpoint.
|
| 3 |
+
FROM python:3.11-slim
|
| 4 |
+
|
| 5 |
+
ENV PYTHONDONTWRITEBYTECODE=1 \
|
| 6 |
+
PYTHONUNBUFFERED=1 \
|
| 7 |
+
HOME=/home/user
|
| 8 |
+
|
| 9 |
+
RUN apt-get update && apt-get install -y --no-install-recommends \
|
| 10 |
+
ca-certificates git \
|
| 11 |
+
&& rm -rf /var/lib/apt/lists/*
|
| 12 |
+
|
| 13 |
+
RUN useradd --uid 1000 --create-home --shell /bin/bash user
|
| 14 |
+
WORKDIR /home/user/app
|
| 15 |
+
|
| 16 |
+
# Public user-controlled competition repository; rebuilt Space picks up the latest main.
|
| 17 |
+
# To use a frozen version, pin this git checkout to a reviewed commit instead.
|
| 18 |
+
RUN git clone --depth 1 https://github.com/Jaycee871/FrontierLab-Meta-Hackathon-2026.git . \
|
| 19 |
+
&& python -m pip install --no-cache-dir -r requirements.txt \
|
| 20 |
+
&& chown -R user:user /home/user/app
|
| 21 |
+
|
| 22 |
+
USER user
|
| 23 |
+
EXPOSE 7860
|
| 24 |
+
CMD ["python", "-m", "streamlit", "run", "app.py", "--server.address=0.0.0.0", "--server.port=7860", "--server.headless=true", "--browser.gatherUsageStats=false"]
|