-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile
22 lines (19 loc) · 1.84 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
FROM ubuntu:20.04
SHELL ["/bin/bash", "-c"]
ENV BASH_ENV=~/.bashrc \
MAMBA_ROOT_PREFIX=/srv/conda \
PATH=$PATH:/srv/conda/envs/env_app_snuggs/bin
ADD environment.yml /tmp/environment.yml
COPY . /tmp
RUN apt-get update && \
apt-get install -y ca-certificates ttf-dejavu file wget bash bzip2 && \
wget -qO- https://micromamba.snakepit.net/api/micromamba/linux-64/latest | tar -xvj bin/micromamba --strip-components=1 && \
./micromamba shell init -s bash -p ~/micromamba && \
apt-get clean autoremove --yes && \
rm -rf /var/lib/{apt,dpkg,cache,log} && \
cp ./micromamba /usr/bin && \
micromamba create -f /tmp/environment.yml && \
cd /tmp && \
/srv/conda/envs/env_app_snuggs/bin/python setup.py install && \
rm -fr /srv/conda/pkgs && \
rm -fr /tmp/*