openenv_hack / Dockerfile
thomasm6m6's picture
Restore minimal OpenEnv app with logs
0076ba5 verified
raw
history blame contribute delete
971 Bytes
FROM python:3.11-slim
WORKDIR /app
ENV PYTHONDONTWRITEBYTECODE=1
ENV PYTHONUNBUFFERED=1
ENV ENABLE_WEB_INTERFACE=true
RUN echo '[build] apt-get begin' \
&& apt-get update \
&& apt-get install -y --no-install-recommends curl \
&& rm -rf /var/lib/apt/lists/* \
&& echo '[build] apt-get end'
RUN echo '[build] pip install begin' \
&& pip install --no-cache-dir "openenv-core[core]==0.2.1" "uvicorn>=0.35.0" \
&& echo '[build] pip install end'
RUN echo '[build] workdir contents before copy' && pwd && ls -la
COPY minimal_openenv_app.py /app/minimal_openenv_app.py
COPY scripts/start_minimal_space.sh /app/scripts/start_minimal_space.sh
COPY README.md /app/README.md
RUN chmod +x /app/scripts/start_minimal_space.sh \
&& echo '[build] copied files' && ls -la /app && ls -la /app/scripts
HEALTHCHECK --interval=30s --timeout=5s --start-period=20s --retries=10 \
CMD curl -f http://localhost:8000/health || exit 1
CMD ["/app/scripts/start_minimal_space.sh"]