2018-10-18 05:03:28 +02:00
|
|
|
FROM photon:2.0
|
2016-08-23 11:57:12 +02:00
|
|
|
|
2019-08-21 16:40:09 +02:00
|
|
|
RUN tdnf install sudo tzdata -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
|
2019-10-29 09:09:54 +01:00
|
|
|
COPY ./make/photon/core/harbor_core /harbor/
|
2018-09-12 08:38:29 +02:00
|
|
|
COPY ./src/core/views /harbor/views
|
2019-01-16 10:30:25 +01:00
|
|
|
COPY ./make/migrations /harbor/migrations
|
2016-08-23 11:57:12 +02:00
|
|
|
|
2019-07-29 09:52:17 +02:00
|
|
|
RUN chmod u+x /harbor/harbor_core
|
2016-08-23 11:57:12 +02:00
|
|
|
WORKDIR /harbor/
|
2019-07-30 07:04:28 +02:00
|
|
|
USER harbor
|
2019-07-18 09:39:29 +02:00
|
|
|
ENTRYPOINT ["/harbor/harbor_core"]
|