Guobiao Mo | da70376 | 2019-02-22 15:36:27 -0800 | [diff] [blame] | 1 | FROM openjdk:8-jre |
2 | |||||
3 | MAINTAINER Guobiao Mo <guobiaomo@chinamobile.com> | ||||
4 | |||||
5 | EXPOSE 1680 | ||||
6 | |||||
7 | RUN groupadd -r datalake && useradd -r -g datalake datalake | ||||
8 | RUN mkdir /home/datalake | ||||
9 | |||||
10 | USER datalake | ||||
11 | |||||
12 | WORKDIR /home/datalake | ||||
13 | |||||
14 | #add the fat jar | ||||
15 | COPY target/feeder-1.0.0-SNAPSHOT.jar /home/datalake/ | ||||
16 | COPY src/assembly/run.sh /home/datalake/ | ||||
17 | |||||
18 | CMD ["sh", "run.sh"] | ||||
19 |