2018-07-19 14:45:20 +02:00
|
|
|
FROM photon:1.0
|
2016-08-23 11:57:12 +02:00
|
|
|
|
2017-10-23 04:48:56 +02:00
|
|
|
RUN mkdir /harbor/ \
|
2018-06-01 08:58:43 +02:00
|
|
|
&& tdnf distro-sync -y \
|
2018-02-27 08:01:14 +01:00
|
|
|
&& tdnf install sudo -y >> /dev/null\
|
2017-11-08 14:22:00 +01:00
|
|
|
&& tdnf clean all \
|
|
|
|
&& groupadd -r -g 10000 harbor && useradd --no-log-init -r -g 10000 -u 10000 harbor
|
2016-08-23 11:57:12 +02:00
|
|
|
|
2017-11-08 14:22:00 +01:00
|
|
|
COPY ./make/photon/jobservice/start.sh ./make/dev/jobservice/harbor_jobservice /harbor/
|
|
|
|
|
|
|
|
RUN chmod u+x /harbor/harbor_jobservice /harbor/start.sh
|
2016-08-23 11:57:12 +02:00
|
|
|
WORKDIR /harbor/
|
2017-11-08 14:22:00 +01:00
|
|
|
ENTRYPOINT ["/harbor/start.sh"]
|