Spaces:
Running
Running
Download Dockerfile from EndeavoringYoon/LEGO: direct link, hf CLI and curl.
- Browser
- Download file 1.1 kB
-
https://huggingface.co/spaces/EndeavoringYoon/LEGO/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/EndeavoringYoon/LEGO/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/EndeavoringYoon/LEGO/resolve/main/Dockerfile
1.1 kB
| FROM python:3.10-slim | |
| # 1. ํ์ ํจํค์ง ์ค์น | |
| RUN apt-get update && apt-get install -y \ | |
| build-essential \ | |
| curl \ | |
| git \ | |
| libgl1-mesa-dev \ | |
| libgl1 \ | |
| libglew-dev \ | |
| libosmesa6-dev \ | |
| patchelf \ | |
| && rm -rf /var/lib/apt/lists/* | |
| # 2. [ํต์ฌ] ๋ผ์ด๋ธ๋ฌ๋ฆฌ ๊ฒฝ๋ก ํ๊ฒฝ๋ณ์ ์ถ๊ฐ (์ด๊ฒ ์์ด์ ๋ชป ์ฐพ๋ ๊ฒ์ผ ์ ์์) | |
| ENV LD_LIBRARY_PATH=/usr/lib/x86_64-linux-gnu:/usr/lib:$LD_LIBRARY_PATH | |
| ENV MUJOCO_GL=osmesa | |
| ENV PYOPENGL_PLATFORM=osmesa | |
| # 3. [ํต์ฌ] ์ฌ๋ณผ๋ฆญ ๋งํฌ (๋์๋ฌธ์ ์ด์ ๋ฐฉ์ง ์ํด ๋ ๊ฐ์ง ์ด๋ฆ์ผ๋ก ๋ค ์์ฑ) | |
| RUN ln -s /usr/lib/x86_64-linux-gnu/libOSMesa.so.8 /usr/lib/libOSMesa.so || true | |
| RUN ln -s /usr/lib/x86_64-linux-gnu/libOSMesa.so.8 /usr/lib/libosmesa.so || true | |
| WORKDIR /app | |
| COPY requirements.txt ./ | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| COPY . . | |
| # 4. ์คํ ๋ช ๋ น | |
| CMD ["streamlit", "run", "src/streamlit_app.py", \ | |
| "--server.address=0.0.0.0", \ | |
| "--server.port=7860", \ | |
| "--server.enableCORS=false", \ | |
| "--server.enableXsrfProtection=false", \ | |
| "--server.headless=true"] |