Skip to content

Commit 1a9cb7a

Browse files
committed
intermediate status for Anna
1 parent 59f0a30 commit 1a9cb7a

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

Images/qiita/Dockerfile

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
FROM ubuntu:22.04
2+
3+
ARG MINIFORGE_VERSION=24.1.2-0
4+
5+
ENV CONDA_DIR=/opt/conda
6+
ENV PATH=${CONDA_DIR}/bin:${PATH}
7+
8+
RUN apt-get -y update
9+
RUN apt-get -y install \
10+
git \
11+
wget
12+
13+
# install miniforge3 for "conda"
14+
# see https://github.com/conda-forge/miniforge-images/blob/master/ubuntu/Dockerfile
15+
RUN wget https://github.com/conda-forge/miniforge/releases/download/${MINIFORGE_VERSION}/Miniforge3-${MINIFORGE_VERSION}-Linux-x86_64.sh -O /tmp/miniforge3.sh && \
16+
/bin/bash /tmp/miniforge3.sh -b -p ${CONDA_DIR} && \
17+
echo ". ${CONDA_DIR}/etc/profile.d/conda.sh && conda activate base" >> /etc/skel/.bashrc && \
18+
echo ". ${CONDA_DIR}/etc/profile.d/conda.sh && conda activate base" >> ~/.bashrc \
19+
conda init
20+
21+
# create conda env for qiita with all necessary dependencies (conda and pip)
22+
RUN conda create --quiet --yes -n qiita python=3.9 pip libgfortran numpy nginx cython anaconda::redis
23+
24+
# Make RUN commands use the new environment:
25+
# append --format docker to the build command, see https://github.com/containers/podman/issues/8477
26+
SHELL ["conda", "run", "-n", "qiita", "/bin/bash", "-c"]
27+
28+
RUN pip install -U pip
29+
RUN pip install \
30+
sphinx \
31+
sphinx-bootstrap-theme \
32+
nose-timer \
33+
Click \
34+
coverage
35+
36+
#RUN mkdir Git
37+
#RUN git clone -b dev https://github.com/qiita-spots/qiita.git
38+
39+
40+
#https://github.com/conda-forge/miniforge/releases/latest/download/Miniforge3-Linux-x86_64.sh

0 commit comments

Comments
 (0)