Skip to content

Commit

Permalink
Copy to workdir.
Browse files Browse the repository at this point in the history
  • Loading branch information
erykoff committed Apr 6, 2023
1 parent 569002d commit 69904e4
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,11 @@ RUN apt-get clean
RUN /usr/sbin/groupadd -g 1000 user && \
/usr/sbin/useradd -u 1000 -g 1000 -d /opt/redmapper redmapper && \
mkdir /opt/redmapper && chown redmapper.user /opt/redmapper && \
chown redmapper.user /opt
chown -R redmapper.user /opt

COPY . /opt/redmapper/workdir
RUN chown -R redmapper.user /opt/redmapper/workdir

USER redmapper

RUN curl -L -o ~/mambaforge.sh https://github.com/conda-forge/miniforge/releases/download/23.1.0-1/Mambaforge-23.1.0-1-Linux-x86_64.sh && \
Expand All @@ -27,6 +31,7 @@ RUN . /opt/conda/etc/profile.d/conda.sh && conda activate redmapper-env && \
conda clean -af --yes

RUN . /opt/conda/etc/profile.d/conda.sh && conda activate redmapper-env && \
cd /opt/redmapper/workdir && \
python setup.py install

ENTRYPOINT [ "/usr/bin/tini", "--" ]
Expand Down

0 comments on commit 69904e4

Please sign in to comment.