2018-10-18 05:03:28 +02:00
|
|
|
FROM photon:2.0
|
|
|
|
|
|
|
|
RUN tdnf install -y shadow sudo \
|
2017-11-09 15:54:27 +01:00
|
|
|
&& tdnf clean all \
|
|
|
|
&& groupadd -r -g 10000 notary \
|
|
|
|
&& useradd --no-log-init -r -g 10000 -u 10000 notary
|
|
|
|
|
2018-09-03 11:40:26 +02:00
|
|
|
COPY ./make/photon/notary/binary/notary-server /bin/notary-server
|
|
|
|
COPY ./make/photon/notary/binary/migrate /bin/migrate
|
|
|
|
COPY ./make/photon/notary/binary/migrations/ /migrations/
|
|
|
|
COPY ./make/photon/notary/server-start.sh /bin/server-start.sh
|
2017-11-09 15:54:27 +01:00
|
|
|
RUN chmod u+x /bin/notary-server /migrations/migrate.sh /bin/migrate /bin/server-start.sh
|
2017-09-26 11:14:13 +02:00
|
|
|
ENV SERVICE_NAME=notary_server
|
2018-07-19 14:45:20 +02:00
|
|
|
ENTRYPOINT [ "/bin/server-start.sh" ]
|