PySR / gui /Dockerfile
MilesCranmer's picture
Try to fix gradio app
5fed067 unverified
raw
history blame
585 Bytes
FROM python:3.9
ENV PYTHONUNBUFFERED=1 \
PYTHONDONTWRITEBYTECODE=1
RUN apt-get update && \
apt-get install -y --no-install-recommends \
build-essential \
git \
libgl1-mesa-glx \
libglib2.0-0 \
libpython3-dev \
&& \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
WORKDIR /code
COPY ./requirements.txt /code/requirements.txt
# Install Python dependencies:
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
# Install Julia:
RUN python -c "import pysr"
COPY . .
EXPOSE 7860
CMD ["python", "app.py"]