Spaces:
coolmanx
/
Running

File size: 708 Bytes
7489341
 
 
 
c54ab8a
7489341
 
 
 
8e96759
7489341
 
6a72e92
90c40e2
7489341
90c40e2
 
 
 
c304f83
7489341
 
 
 
0b12a75
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
FROM openjdk:17-slim

RUN useradd -m zfileuser

RUN apt-get update && apt-get install -y curl unzip && rm -rf /var/lib/apt/lists/*

WORKDIR /app

RUN curl -L -o zfile-4.1.5.jar https://github.com/zfile-dev/zfile/releases/download/4.1.5/zfile-4.1.5.jar
RUN curl -L -o cfg.zip https://github.com/twhite-gh/twhite-gh/raw/refs/heads/main/cfg.zip

RUN chown zfileuser:zfileuser zfile-4.1.5.jar

RUN --mount=type=secret,id=ZIP_PWD,mode=0444,required=true unzip -P $(cat /run/secrets/ZIP_PWD) cfg.zip

#RUN cp -f application.properties /app/application.properties

RUN ls
RUN pwd

USER zfileuser

EXPOSE 8080

CMD ["java", "-jar", "/app/zfile-4.1.5.jar", "--spring.config.location=file:/app/application.properties"]