-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathDockerfile_arm64
More file actions
47 lines (31 loc) · 1.29 KB
/
Dockerfile_arm64
File metadata and controls
47 lines (31 loc) · 1.29 KB
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
35
36
37
38
39
40
41
42
43
44
45
46
47
FROM rocker/r-ver:4.2.1
WORKDIR /service
RUN apt clean && apt-get update
# install dependencies
RUN apt-get -y install wget && apt-get -y install gnupg && apt-get -y install curl
RUN wget -O - https://packages.adoptium.net/artifactory/api/gpg/key/public | apt-key add -
RUN echo "deb https://packages.adoptium.net/artifactory/deb $(awk -F= '/^VERSION_CODENAME/{print$2}' /etc/os-release) main" | tee /etc/apt/sources.list.d/adoptium.list
RUN apt-get update
# next flow dependencies
RUN apt-get -y install temurin-17-jdk
# install nextflow
RUN wget -qO- https://get.nextflow.io | bash && chmod +x nextflow && cp ./nextflow /usr/local
RUN apt-get -y install graphviz
ENV PATH="${PATH}:/usr/local/"
# cleanup
RUN rm -f /service/nextflow
# set desired nextflow version
RUN export NXF_VER=23.04.1
# install Go
RUN wget https://go.dev/dl/go1.21.0.linux-arm64.tar.gz
RUN rm -rf /usr/local/go && tar -C /usr/local -xzf go1.21.0.linux-arm64.tar.gz
ENV PATH="${PATH}:/usr/local/go/bin"
RUN apt-get install software-properties-common && add-apt-repository ppa:deadsnakes/ppa && sudo apt-get update & apt-get -y install python3.8
RUN python3.8 --version
# cleanup
RUN rm -f go1.21.0.linux-arm64.tar.gz
COPY . .
RUN ls /service
RUN go build -o /service/main main.go
RUN mkdir -p data
ENTRYPOINT [ "/service/main" ]