blob: 1a8539869574a0d9779d242abfca3fa0355e60b6 (
plain)
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
|
FROM openjdk:11-jre-slim
MAINTAINER Guobiao Mo <guobiaomo@chinamobile.com>
EXPOSE 1680
RUN groupadd -r datalake && useradd -r -g datalake datalake
RUN mkdir /home/datalake
USER datalake
WORKDIR /home/datalake
#add the fat jar
COPY target/${JAR_FILE} /home/datalake/
COPY src/assembly/run.sh /home/datalake/
WORKDIR /home/datalake/db_init
ADD src/assembly/init_db/scripts/db_init .
USER root
RUN chmod 0755 ./*
WORKDIR /home/datalake
COPY src/assembly/init_db/db_scripts/init_db.sql .
COPY src/assembly/init_db/db_scripts/init_db_data.sql .
RUN apt update && \
apt install -y mariadb-client && \
apt install -y curl
USER datalake
CMD ["sh", "run.sh"]
|