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