forked from Voice-Phishing-Detection-App/Server
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
23 lines (17 loc) ยท 740 Bytes
/
Dockerfile
File metadata and controls
23 lines (17 loc) ยท 740 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# jdk 11ํ๊ฒฝ ๊ตฌ์ฑ
FROM openjdk:11-jre-slim-buster
# ํจํค์ง ์
๋ฐ์ดํธ ๋ฐ ์
๊ทธ๋ ์ด๋, FFmpeg ์ค์น ํ ์บ์ ์ญ์
RUN apt-get update && apt-get upgrade -y \
&& apt-get install -y ffmpeg \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
ARG JAR_FILE=build/libs/*.jar
# jar ํ์ผ์ app.jar๋ก ๋ณต์ฌ
COPY ${JAR_FILE} app.jar
# ํ๊ฒฝ๋ณ์ ์ค์
EXPOSE 8080
COPY src/main/resources/fcm-service-account-file.json src/main/resources/fcm-service-account-file.json
COPY src/main/resources/google_stt_account_key.json src/main/resources/google_stt_account_key.json
ENV GOOGLE_APPLICATION_CREDENTIALS=/src/main/resources/google_stt_account_key.json
# jar ํ์ผ ์คํ
ENTRYPOINT ["java","-jar","/app.jar"]