2017-10-30 06:12:47 +01:00
|
|
|
FROM vmware/photon:1.0
|
2017-09-26 11:14:13 +02:00
|
|
|
|
2018-04-27 11:27:12 +02:00
|
|
|
RUN tdnf distro-sync -y || echo \
|
2017-10-30 06:12:47 +01:00
|
|
|
&& tdnf erase vim -y \
|
2017-11-09 15:54:27 +01:00
|
|
|
&& tdnf install -y shadow sudo \
|
|
|
|
&& tdnf clean all \
|
|
|
|
&& groupadd -r -g 10000 notary \
|
|
|
|
&& useradd --no-log-init -r -g 10000 -u 10000 notary
|
2017-09-26 11:14:13 +02:00
|
|
|
COPY ./binary/notary-signer /bin/notary-signer
|
2017-12-09 19:53:12 +01:00
|
|
|
COPY ./binary/migrate /bin/migrate
|
|
|
|
COPY ./binary/migrations/ /migrations/
|
2017-11-09 15:54:27 +01:00
|
|
|
COPY ./signer-start.sh /bin/signer-start.sh
|
2017-09-26 11:14:13 +02:00
|
|
|
|
2017-11-09 15:54:27 +01:00
|
|
|
RUN chmod u+x /bin/notary-signer /migrations/migrate.sh /bin/migrate /bin/signer-start.sh
|
2017-09-26 11:14:13 +02:00
|
|
|
ENV SERVICE_NAME=notary_signer
|
2017-12-09 19:53:12 +01:00
|
|
|
ENTRYPOINT [ "/bin/signer-start.sh" ]
|