TiRex-demo / Dockerfile
Nikita
upd dockerfile to run app.py in tirex env
41b1025
raw
history blame
621 Bytes
# Base image with Conda
FROM continuumio/miniconda3
# Set working directory
WORKDIR /app
# Copy environment.yaml for conda
COPY environment.yaml /tmp/environment.yaml
# Create the Conda environment
RUN conda env create -f /tmp/environment.yaml
# Set default shell to use conda env
SHELL ["conda", "run", "--no-capture-output", "-n", "tirex", "/bin/bash", "-c"]
# Copy all project files and folders
COPY app.py /app/
COPY static /app/static
COPY data /app/data
COPY tirex /app/tirex
# Expose the default port
EXPOSE 7860
# Run your app
CMD ["conda", "run", "--no-capture-output", "-n", "tirex", "python", "app.py"]