-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
38 lines (27 loc) · 984 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
33
34
35
36
37
38
# Copyright: (c) 2022, Justin Béra (@just1not2) <[email protected]>
# Apache License 2.0 (see LICENSE or https://www.apache.org/licenses/LICENSE-2.0.txt)
# Build
FROM openjdk:8-jre-slim as build
WORKDIR /app
RUN apt-get -y update
RUN apt-get -y install wget
RUN wget https://github.com/streamaserver/streama/archive/refs/tags/v1.10.4.tar.gz
RUN tar xvzf /app/v1.10.4.tar.gz
WORKDIR /app/streama-1.10.4
RUN ./gradlew build -Dgrails.env=mysql --no-daemon
# Install
FROM openjdk:8-jre-slim
LABEL maintainer="[email protected]"
WORKDIR /app
COPY --from=build /app/streama-1.10.4/build/libs/streama-1.10.4-1.10.4.jar /app/streama.jar
EXPOSE 8080
ENTRYPOINT [ \
"java", \
"-Dmysql_host=${STREAMA_MYSQL_HOST:localhost}", \
"-Dmysql_port=${STREAMA_MYSQL_PORT:3306}", \
"-Dmysql_db=${STREAMA_MYSQL_DB:streama}", \
"-Dmysql_user=${STREAMA_MYSQL_USER:streama}", \
"-Dmysql_password=${STREAMA_MYSQL_PASSWORD:streama}", \
"-jar", \
"/app/streama.jar" \
]