AdithyaSK's picture
AdithyaSK HF Staff
Deploy frozen Daytona environment service
ac2657f verified
Raw
History Blame Contribute Delete
782 Bytes
FROM ghcr.io/astral-sh/uv@sha256:85d4cb1afa769a7338e095b927bee941cf5ec92266c7424b3f6c0f2748567248
USER root
RUN useradd -m -u 1000 user
WORKDIR /workspace/repro
COPY requirements-env.lock /tmp/requirements-env.lock
RUN uv venv --python 3.12 /opt/environment && uv pip sync --python /opt/environment/bin/python --require-hashes /tmp/requirements-env.lock
COPY bundle.tar.gz /tmp/bundle.tar.gz
RUN python -c "import tarfile; tarfile.open('/tmp/bundle.tar.gz').extractall('/workspace/repro', filter='data')" && rm /tmp/bundle.tar.gz
RUN chown -R user:user /workspace /opt/environment
USER user
ENV PYTHONUNBUFFERED=1 PYTHONPATH=/workspace/repro/hf/runtime REPRO_ROOT=/workspace/repro PORT=7860
CMD ["/opt/environment/bin/python", "-u", "/workspace/repro/hf/runtime/opencode_space.py"]