# Use the official Ubuntu base image
FROM ubuntu:22.04

# Set environment variables to non-interactive to avoid prompts during package installation
ENV DEBIAN_FRONTEND=noninteractive

# Install dependencies
RUN apt-get update && \
    apt-get install -y \
    wget \
    bzip2 \
    ca-certificates \
    libglib2.0-0 \
    libxext6 \
    libsm6 \
    libxrender1 \
    git \
    bc \
    build-essential \
    pip \
    && apt-get clean

# Update PATH environment variable to include conda
ENV PATH=/opt/conda/bin:$PATH

RUN apt-get install -y python3.9

RUN pip install git+https://github.com/HeliXonProtein/OmegaFold.git

# Make sure the environment is activated by default
RUN echo "source activate bio" >> ~/.bashrc

# Set the working directory
WORKDIR /data

# Use bash for all subsequent commands
SHELL ["/bin/bash", "-c"]