testdeep123 commited on
Commit
2d33511
·
verified ·
1 Parent(s): b9fcf64

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +18 -21
Dockerfile CHANGED
@@ -1,21 +1,18 @@
1
- FROM debian:stable
2
-
3
- USER root
4
-
5
- ENV DEBIAN_FRONTEND noninteractive
6
-
7
- COPY . /app
8
-
9
- RUN chmod -R 777 /app
10
-
11
- WORKDIR /app
12
-
13
- RUN apt-get update && apt-get install openjdk-17-jdk -y
14
-
15
- RUN --mount=type=secret,id=NGROK_TOKEN,mode=0444,required=true echo $(cat /run/secrets/NGROK_TOKEN) > token.txt
16
-
17
- RUN mkdir -p /.config/ngrok
18
- RUN chown -R root:root /.config/ngrok
19
- RUN chmod -R 777 /.config/ngrok
20
-
21
- CMD ["sh", "start.sh"]
 
1
+ FROM debian:stable
2
+
3
+ USER root
4
+
5
+ ENV DEBIAN_FRONTEND=noninteractive
6
+
7
+ COPY . /app
8
+
9
+ RUN chmod -R 777 /app
10
+
11
+ WORKDIR /app
12
+
13
+ RUN apt-get update && \
14
+ apt-get install -y openjdk-21-jdk && \
15
+ apt-get clean && \
16
+ rm -rf /var/lib/apt/lists/*
17
+
18
+ CMD ["sh", "start.sh"]