2018-07-19 14:45:20 +02:00
|
|
|
FROM photon:1.0
|
2016-08-23 11:57:12 +02:00
|
|
|
|
2018-03-21 06:03:49 +01:00
|
|
|
RUN tdnf distro-sync -y \
|
2017-10-30 03:56:18 +01:00
|
|
|
&& tdnf erase vim -y \
|
2018-02-27 08:01:14 +01:00
|
|
|
&& tdnf install sudo -y >> /dev/null\
|
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
|
|
|
|
2018-03-28 08:52:42 +02:00
|
|
|
HEALTHCHECK CMD curl --fail -s http://127.0.0.1:8080/api/ping || exit 1
|
2018-09-12 08:38:29 +02:00
|
|
|
COPY ./make/photon/core/harbor_core ./make/photon/core/start.sh ./UIVERSION /harbor/
|
|
|
|
COPY ./src/core/views /harbor/views
|
2016-08-23 11:57:12 +02:00
|
|
|
|
2018-09-12 08:38:29 +02:00
|
|
|
RUN chmod u+x /harbor/start.sh /harbor/harbor_core
|
2016-08-23 11:57:12 +02:00
|
|
|
WORKDIR /harbor/
|
2017-11-08 14:22:00 +01:00
|
|
|
|
|
|
|
ENTRYPOINT ["/harbor/start.sh"]
|