2017-10-30 03:56:18 +01:00
|
|
|
FROM vmware/photon:1.0
|
2016-08-23 11:57:12 +02:00
|
|
|
|
2017-10-30 03:56:18 +01:00
|
|
|
RUN tdnf distro-sync -y \
|
|
|
|
&& tdnf erase vim -y \
|
2017-11-08 14:22:00 +01:00
|
|
|
&& tdnf install sudo -y \
|
2017-10-30 03:56:18 +01:00
|
|
|
&& tdnf clean all \
|
2017-11-08 14:22:00 +01:00
|
|
|
&& groupadd -r -g 10000 harbor && useradd --no-log-init -r -g 10000 -u 10000 harbor \
|
2017-10-30 03:56:18 +01:00
|
|
|
&& mkdir /harbor/
|
2016-08-23 11:57:12 +02:00
|
|
|
|
2017-11-08 14:22:00 +01:00
|
|
|
HEALTHCHECK CMD curl -s -o /dev/null -w "%{http_code}" 127.0.0.1:8080/api/systeminfo|grep 200
|
|
|
|
COPY ./make/dev/ui/harbor_ui ./src/favicon.ico ./make/photon/ui/start.sh ./VERSION /harbor/
|
2016-10-19 08:32:00 +02:00
|
|
|
COPY ./src/ui/views /harbor/views
|
|
|
|
COPY ./src/ui/static /harbor/static
|
2016-08-23 11:57:12 +02:00
|
|
|
|
2017-11-08 14:22:00 +01:00
|
|
|
RUN chmod u+x /harbor/start.sh /harbor/harbor_ui
|
2016-08-23 11:57:12 +02:00
|
|
|
WORKDIR /harbor/
|
2017-11-08 14:22:00 +01:00
|
|
|
|
|
|
|
ENTRYPOINT ["/harbor/start.sh"]
|