# Base on fedora with tags latest, rawhide, 32, 33 
FROM registry.fedoraproject.org/fedora:latest

# Set environment variables
ENV NAME=neurofedora VERSION=0 ARCH=x86_64

LABEL com.redhat.component="$NAME" \
      name="$NAME" \
      version="$VERSION" \
      architecture="$ARCH" \
      run="docker run -it -p 8888:8888 IMAGE" \
      podmanrun="podman run -it -p 8888:8888 IMAGE" \
      maintainer="NeuroFedora-SIG <neuro-sig@lists.fedoraproject.org>" \ 
      url="https://docs.fedoraproject.org/en-US/neurofedora/docker/" \
      summary=" NeuroFedora is an initiative to provide a ready to use Fedora based Free/Open source software platform for neuroscience. We believe that similar to Free software, science should be free for all to use, share, modify, and study."

# Exposing Jupyter Notebook port 
EXPOSE 8888

# Installing Neuro Fedora Packages and jupyter notebook
RUN dnf groupinstall -y --with-optional "Neuron Modelling Simulators" --skip-broken && \
    sudo dnf install -y python3-notebook mathjax sscg --skip-broken && \
    dnf clean all && dnf list installed
# Entrypoint 
CMD ["/bin/bash"] 
