-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy pathDockerfile
32 lines (17 loc) · 869 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
FROM gradle:jdk17 AS build
COPY --chown=gradle:gradle . /home/gradle/src
WORKDIR /home/gradle/src
RUN gradle shadowJar
#run gradle model:update
FROM openjdk:17.0.1-jdk-slim-bullseye
RUN apt-get update && apt-get install wget fontconfig -y
ENV DOCKERIZE_VERSION v0.6.1
RUN wget https://github.com/jwilder/dockerize/releases/download/$DOCKERIZE_VERSION/dockerize-linux-amd64-$DOCKERIZE_VERSION.tar.gz \
&& tar -C /usr/local/bin -xzvf dockerize-linux-amd64-$DOCKERIZE_VERSION.tar.gz \
&& rm dockerize-linux-amd64-$DOCKERIZE_VERSION.tar.gz
RUN mkdir /app && mkdir /data/ && mkdir /data/cache/ && chmod -R 777 /data
COPY /fonts /usr/share/fonts/
RUN fc-cache -f -v
COPY --from=build /home/gradle/src/build/libs/*.jar /app/chuu.jar
COPY --from=build /home/gradle/src/* /tmp
#ENTRYPOINT ["java","--enable-preview", "-jar","/app/chuu.jar","stop-asking"]