2016-11-21 09:15:43 +01:00
|
|
|
FROM library/photon:1.0
|
2016-08-23 11:57:12 +02:00
|
|
|
|
|
|
|
RUN mkdir /harbor/
|
2017-01-04 07:10:13 +01:00
|
|
|
RUN tdnf install -y sed
|
2016-08-23 11:57:12 +02:00
|
|
|
|
2016-10-19 08:32:00 +02:00
|
|
|
COPY ./make/dev/ui/harbor_ui /harbor/
|
2016-08-23 11:57:12 +02:00
|
|
|
|
2016-10-19 08:32:00 +02:00
|
|
|
COPY ./src/ui/views /harbor/views
|
|
|
|
COPY ./src/ui/static /harbor/static
|
|
|
|
COPY ./src/favicon.ico /harbor/favicon.ico
|
|
|
|
COPY ./make/jsminify.sh /tmp/jsminify.sh
|
2016-08-23 11:57:12 +02:00
|
|
|
|
|
|
|
RUN chmod u+x /harbor/harbor_ui \
|
2016-11-14 11:27:56 +01:00
|
|
|
&& timestamp=`date '+%s'` \
|
|
|
|
&& /tmp/jsminify.sh /harbor/views/sections/script-include.htm /harbor/static/resources/js/harbor.app.min.$timestamp.js /harbor/ \
|
2017-01-04 07:10:13 +01:00
|
|
|
&& sed -i "s/harbor\.app\.min\.js/harbor\.app\.min\.$timestamp\.js/g" /harbor/views/sections/script-min-include.htm
|
2016-11-14 11:27:56 +01:00
|
|
|
|
2016-08-23 11:57:12 +02:00
|
|
|
WORKDIR /harbor/
|
|
|
|
ENTRYPOINT ["/harbor/harbor_ui"]
|