-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathDockerfile
34 lines (26 loc) · 993 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# Build image: docker build --platform linux/x86_64 -t kisudsoe/postgwas .
FROM ubuntu:latest
WORKDIR /
MAINTAINER Suhlab-Seungsoo_Kim
ENV PATH="/root/miniconda3/bin:${PATH}"
ARG PATH="/root/miniconda3/bin:${PATH}"
RUN apt update -y --fix-missing && \
apt upgrade -y
# Install system dependencies
## openjdk-11-jre-headless
RUN apt -y install wget && rm -rf /var/lib/apt/lists/*
# Install miniconda
RUN wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh && \
mkdir /root/.conda && \
bash Miniconda3-latest-Linux-x86_64.sh -b && \
rm -f Miniconda3-latest-Linux-x86_64.sh && \
conda config --add channels conda-forge && \
conda config --add channels bioconda && \
conda config --add channels biobuilds && \
conda config --add channels r
# Install softwares
COPY requirements.txt ./
RUN conda install -y -c defaults -c conda-forge -c bioconda -c biobuilds -c r --no-update-deps --file requirements.txt
# Copy PostGWAS-tools source codes
COPY . .
WORKDIR /