-
Notifications
You must be signed in to change notification settings - Fork 6
/
Dockerfile
60 lines (43 loc) · 1.55 KB
/
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
FROM ubuntu:20.04 as downloader
ARG PADDLE_VERSION
RUN apt-get update && apt-get -y install wget
RUN wget -O /paddle.jar "https://github.com/JetBrains-Research/paddle/releases/download/v${PADDLE_VERSION}/paddle-${PADDLE_VERSION}-all.jar"
FROM python:3.10-bullseye as paddle-py-3-10
# Install OpenJDK-17
RUN apt-get update && \
apt-get install -y openjdk-17-jdk && \
apt-get clean;
# Fix certificate issues
RUN apt-get update && \
apt-get install ca-certificates-java && \
apt-get clean && \
update-ca-certificates -f;
COPY --from=downloader /paddle.jar /paddle.jar
RUN echo "java -jar /paddle.jar \$@" >> /bin/paddle && chmod +x /bin/paddle
ENTRYPOINT ["paddle"]
FROM python:3.9-bullseye as paddle-py-3-9
# Install OpenJDK-17
RUN apt-get update && \
apt-get install -y openjdk-17-jdk && \
apt-get clean;
# Fix certificate issues
RUN apt-get update && \
apt-get install ca-certificates-java && \
apt-get clean && \
update-ca-certificates -f;
COPY --from=downloader /paddle.jar /paddle.jar
RUN echo "java -jar /paddle.jar \$@" >> /bin/paddle && chmod +x /bin/paddle
ENTRYPOINT ["paddle"]
FROM python:3.8-bullseye as paddle-py-3-8
# Install OpenJDK-17
RUN apt-get update && \
apt-get install -y openjdk-17-jdk && \
apt-get clean;
# Fix certificate issues
RUN apt-get update && \
apt-get install ca-certificates-java && \
apt-get clean && \
update-ca-certificates -f;
COPY --from=downloader /paddle.jar /paddle.jar
RUN echo "java -jar /paddle.jar \$@" >> /bin/paddle && chmod +x /bin/paddle
ENTRYPOINT ["paddle"]