mirror of
https://github.com/goharbor/harbor.git
synced 2025-01-04 15:08:21 +01:00
27 lines
728 B
Docker
27 lines
728 B
Docker
FROM library/ubuntu:14.04
|
|
|
|
MAINTAINER jiangd@vmware.com
|
|
|
|
ENV MYSQL_USR root \
|
|
MYSQL_PWD root \
|
|
REGISTRY_URL localhost:5000
|
|
|
|
RUN mkdir /harbor/
|
|
COPY ./make/dev/ui/harbor_ui /harbor/
|
|
|
|
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
|
|
|
|
RUN chmod u+x /harbor/harbor_ui \
|
|
&& timestamp=`date '+%s'` \
|
|
&& /tmp/jsminify.sh /harbor/views/sections/script-include.htm /harbor/static/resources/js/harbor.app.min.$timestamp.js /harbor/ \
|
|
&& sed -i "s/harbor\.app\.min\.js/harbor\.app\.min\.$timestamp\.js/g" /harbor/views/sections/script-min-include.htm
|
|
|
|
WORKDIR /harbor/
|
|
ENTRYPOINT ["/harbor/harbor_ui"]
|
|
|
|
EXPOSE 80
|
|
|