diff options
author | Ekko Chang <ekko.chang@qct.io> | 2019-05-13 18:41:30 +0800 |
---|---|---|
committer | Ekko Chang <ekko.chang@qct.io> | 2019-05-13 18:46:02 +0800 |
commit | 5919a1400fc660139ba23ae31730a4eb53eac046 (patch) | |
tree | 4d1b5bff0ce2574747053f1978ea41d935b1a387 /components/datalake-handler/admin/Dockerfile | |
parent | 59e2cb0714953e91f5a6c29c58fb935f44975442 (diff) |
Modify framework of front-end
1. Integrate REST API with feeder
2. Implement css coding
3. Dockerize app and add license header
Issue-ID: DCAEGEN2-1188
Change-Id: If4f0c70c842f81a44266a21dd598ab503bdc5dd8
Signed-off-by: Ekko Chang <ekko.chang@qct.io>
Diffstat (limited to 'components/datalake-handler/admin/Dockerfile')
-rw-r--r-- | components/datalake-handler/admin/Dockerfile | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/components/datalake-handler/admin/Dockerfile b/components/datalake-handler/admin/Dockerfile new file mode 100644 index 00000000..95af88a5 --- /dev/null +++ b/components/datalake-handler/admin/Dockerfile @@ -0,0 +1,23 @@ +FROM node:alpine AS builder +MAINTAINER Ekko Chang <ekko.chang@qct.io> + +LABEL org.label-schema.docker.build="docker build -t dl-admin . --no-cache" \ + org.label-schema.docker.run="docker run -p 80:80 --add-host=dl_feeder:your_feeder_ipaddress dl-admin" + +WORKDIR /app +COPY ./src . +COPY ./nginx . +RUN npm install && \ + npm run build + + +FROM nginx:1.15.12 +RUN apt-get update && \ + apt-get install -y dnsmasq + +RUN echo "\n\n# Docker extra config \nuser=root\naddn-hosts=/etc/hosts\n" >> /etc/dnsmasq.conf + +COPY --from=builder /app/dist/* /usr/share/nginx/html/ +COPY --from=builder /app/dl-admin-nginx.conf /etc/nginx/conf.d/default.conf + +CMD service dnsmasq restart && nginx -g "daemon off;" |