mirror of
https://github.com/goharbor/harbor.git
synced 2024-12-28 11:37:42 +01:00
18 lines
527 B
Docker
18 lines
527 B
Docker
|
ARG harbor_base_image_version
|
||
|
ARG harbor_base_namespace
|
||
|
FROM ${harbor_base_namespace}/harbor-db-base:${harbor_base_image_version}
|
||
|
|
||
|
ENV EXTERNAL_DB 0
|
||
|
|
||
|
RUN mkdir /harbor/
|
||
|
COPY ./make/migrations /migrations
|
||
|
COPY ./make/photon/standalone-db-migrator/migrate /harbor/
|
||
|
COPY ./make/photon/standalone-db-migrator/entrypoint.sh /harbor/
|
||
|
|
||
|
RUN chown -R postgres:postgres /harbor/ \
|
||
|
&& chown -R postgres:postgres /migrations/ \
|
||
|
&& chmod u+x /harbor/migrate /harbor/entrypoint.sh
|
||
|
USER postgres
|
||
|
|
||
|
ENTRYPOINT ["/harbor/entrypoint.sh"]
|