Spaces:
Running
on
L4
Running
on
L4
File size: 604 Bytes
dffaf30 3d87e1b 8efd7db 3d87e1b 8efd7db 4008e46 bebad14 bca3a49 8efd7db bca3a49 b02272e bca3a49 8efd7db 3d87e1b bca3a49 |
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 |
FROM continuumio/miniconda3
RUN useradd -m -u 1000 user
WORKDIR /usr/src/app
COPY --link --chown=1000 ./ /usr/src/app
COPY . .
# install dependcies
# RUN conda install -y pandas numpy scikit-learn
# RUN pip install --no-cache-dir -r requirements.txt
# Create Conda environment from env.yaml
RUN conda env create -f env.yml
#if you need to download executable and run them switch to the default non-root user
USER user
#do not modify below
EXPOSE 7860
ENV GRADIO_SERVER_NAME="0.0.0.0"
# CMD ["python", "inference_app.py"]
CMD ["conda", "run", "-n", "dockformer-venv", "python", "inference_app.py"]
|