Guobiao Mo | 6670cf9 | 2020-01-06 17:11:43 -0800 | [diff] [blame] | 1 | FROM openjdk:8-jre-slim |
Guobiao Mo | da70376 | 2019-02-22 15:36:27 -0800 | [diff] [blame] | 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 |
Guobiao Mo | 6670cf9 | 2020-01-06 17:11:43 -0800 | [diff] [blame] | 15 | COPY target/${JAR_FILE} /home/datalake/ |
Guobiao Mo | da70376 | 2019-02-22 15:36:27 -0800 | [diff] [blame] | 16 | COPY src/assembly/run.sh /home/datalake/ |
| 17 | |
| 18 | CMD ["sh", "run.sh"] |
| 19 | |