File size: 885 Bytes
f174c76
 
729c8ce
f174c76
 
 
 
 
729c8ce
 
 
5fcb989
729c8ce
 
5a7a053
 
729c8ce
 
 
 
 
5a7a053
729c8ce
 
 
 
 
 
f174c76
 
729c8ce
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
FROM python:3.9-slim

RUN apt-get update && apt-get install -y unzip wget curl && rm -rf /var/lib/apt/lists/*
RUN useradd -m -u 1000 user

USER user
WORKDIR /home/user/app

# QUIET download - just show start/end
RUN echo "📥 Downloading game files (10GB)..." && \
    wget -q --show-progress --progress=bar:force:noscroll \
    "https://huggingface.co/datasets/hannabaker/et-dataset/resolve/main/et-game.zip" \
    2>&1 | tail -1 && \
    echo "✅ Download complete!"


# Silent extract
RUN echo "📦 Extracting..." && \
    unzip -qq et-game.zip && \
    rm et-game.zip && \
    echo "✅ Ready!"

# Quick check for index.html location
RUN echo "📂 Files:" && \
    find . -maxdepth 2 -name "index.html" | head -1 || echo "No index.html in root"

# Move files if in subfolder
RUN [ -f et/index.html ] && mv et/* . || true

EXPOSE 7860
CMD ["python", "-m", "http.server", "7860"]