-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathDockerfile
More file actions
23 lines (16 loc) · 707 Bytes
/
Dockerfile
File metadata and controls
23 lines (16 loc) · 707 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
FROM openjdk:17-jdk-slim
ARG GOOGLE_FILE_PASSWORD
RUN apt-get update && apt-get install -y \
python3 \
wget \
curl \
ffmpeg \
&& rm -rf /var/lib/apt/lists/*
RUN wget https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp -O /usr/local/bin/yt-dlp && \
chmod a+rx /usr/local/bin/yt-dlp
COPY backend/target/briefme-0.0.1-SNAPSHOT.jar /app/briefme-0.0.1-SNAPSHOT.jar
COPY google-api-credentials.json.enc /app/google-api-credentials.json.enc
RUN openssl enc -d -aes-256-cbc -in /app/google-api-credentials.json.enc -out /app/google-api-credentials.json -pbkdf2 -k "${GOOGLE_FILE_PASSWORD}"
WORKDIR /app
EXPOSE 8080
ENTRYPOINT ["java","-jar","briefme-0.0.1-SNAPSHOT.jar"]