# hash:sha256:7dbb41516855b7a4c5c2a305cc83a36b2ceee9b1e4f83644fbeaffd8054316cf
ARG REGISTRY_HOST
FROM $REGISTRY_HOST/codeocean/mambaforge3:23.1.0-4-python3.10.12-ubuntu22.04

ARG DEBIAN_FRONTEND=noninteractive

ADD "https://github.com/coder/code-server/releases/download/v4.95.3/code-server-4.95.3-linux-amd64.tar.gz" /.code-server/code-server.tar.gz
	
RUN cd /.code-server \
    && tar -xvf code-server.tar.gz \
    && rm code-server.tar.gz \
    && ln -s /.code-server/code-server-4.95.3-linux-amd64/bin/code-server  /usr/bin/code-server

ARG GIT_ASKPASS
ARG GIT_ACCESS_TOKEN
COPY git-askpass /

RUN pip install --no-cache-dir "git+https://github.com/AllenNeuralDynamics/LCNE-patchseq-analysis.git@main#egg=LCNE-patchseq-analysis[panel]"


COPY postInstall /
RUN /postInstall
