forked from big-data-europe/app-integrator-ui
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
20 lines (17 loc) · 701 Bytes
/
Copy pathDockerfile
File metadata and controls
20 lines (17 loc) · 701 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
FROM nginx:1
MAINTAINER Aad Versteden <madnificent@gmail.com>
COPY package.json /package.json
COPY user-interfaces /user-interfaces
RUN apt-get update \
&& apt-get upgrade -y \
&& apt-get install -y unzip wget \
&& ln -s /usr/share/nginx/html /app \
&& mkdir /app/config \
&& mv /user-interfaces /app/config/ \
&& cd /app \
&& wget https://github.com/big-data-europe/app-integrator-ui/releases/download/v$(cat /package.json | grep version | head -n 1 | awk -F: '{ print $2 }' | sed 's/[ ",]//g')/dist.zip \
&& cd /app \
&& unzip dist.zip \
&& mv dist/* . \
&& ln -s /app/config/user-interfaces /app/user-interfaces \
&& rm /app/dist.zip /package.json