-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdockerfile
More file actions
39 lines (30 loc) · 823 Bytes
/
Copy pathdockerfile
File metadata and controls
39 lines (30 loc) · 823 Bytes
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
# syntax=docker/dockerfile:1
# FROM debian:bookworm or debian:trixie works as well
FROM ubuntu:22.04
USER root
COPY . /driftool
WORKDIR /driftool
RUN rm -rf /driftool/volume
RUN apt-get -y update
RUN apt -y install sudo
RUN chmod 777 ./debrun.sh
RUN rm -rf ./volume
RUN rm -rf ./tmp
RUN mkdir -p ./volume
RUN apt-get -y update
RUN apt-get -y upgrade
RUN apt -y install unzip
RUN apt -y install openjdk-21-jdk
RUN apt -y install python3
RUN apt -y install python3-pip
RUN apt -y install python-is-python3
RUN pip install numpy
RUN pip install scikit-learn
WORKDIR /driftool/driftool_kt
RUN ./gradlew clean
RUN ./gradlew build
RUN mv build/distributions/driftool_kt-1.0-SNAPSHOT.zip /driftool
WORKDIR /driftool
RUN unzip driftool_kt-1.0-SNAPSHOT.zip
RUN apt -y install git
ENTRYPOINT ["sudo", "/driftool/debrun.sh"]