2019-11-11 11:56:36 +01:00
|
|
|
FROM goharbor/harbor-notary-signer-base:${harbor_base_image_version}
|
2017-09-26 11:14:13 +02:00
|
|
|
|
2019-02-19 05:51:37 +01:00
|
|
|
COPY ./make/photon/notary/migrate-patch /bin/migrate-patch
|
2018-09-03 11:40:26 +02: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/
|
2017-09-26 11:14:13 +02:00
|
|
|
|
2019-07-26 09:25:17 +02:00
|
|
|
RUN chmod +x /bin/notary-signer /migrations/migrate.sh /bin/migrate /bin/migrate-patch
|
2017-09-26 11:14:13 +02:00
|
|
|
ENV SERVICE_NAME=notary_signer
|
2019-07-26 09:25:17 +02:00
|
|
|
USER notary
|
|
|
|
CMD migrate-patch -database=${DB_URL} && /migrations/migrate.sh && /bin/notary-signer -config=/etc/notary/signer-config.postgres.json -logf=logfmt
|