Ajay Karthick Senthil Kumar
add Dockerfile
720b489
raw
history blame
616 Bytes
# Use a basic Python image
FROM continuumio/miniconda3:latest
# Set the working directory in the container
WORKDIR /app
# Copy the local files into the container
COPY . /app
# Install the necessary conda environment from conda.yml
COPY conda.yml /app/conda.yml
RUN conda env create -f /app/conda.yml
# Activate the conda environment and ensure it is activated when the container starts
RUN echo "source activate audio-deepfake-env" > ~/.bashrc
ENV PATH /opt/conda/envs/audio-deepfake-env/bin:$PATH
# Expose the necessary port (e.g., for Streamlit)
EXPOSE 8501
# Run your app
CMD ["streamlit", "run", "app.py"]