harbor/make/photon/prepare/Dockerfile
DQ 1e0c9f7231 Feat: Add config migrator to prepare
deprecated migrator container and move config migration to prepare

Signed-off-by: DQ <dengq@vmware.com>
2020-03-20 03:04:10 +08:00

16 lines
392 B
Docker

ARG harbor_base_image_version
FROM goharbor/harbor-prepare-base:${harbor_base_image_version}
ENV LANG en_US.UTF-8
WORKDIR /usr/src/app
RUN mkdir -p /harbor_make
COPY make/photon/prepare/Pipfile.lock make/photon/prepare/Pipfile /usr/src/app/
RUN set -ex && pipenv install --deploy --system
COPY make/photon/prepare /usr/src/app
ENTRYPOINT [ "python3", "main.py" ]
VOLUME ["/harbor_make"]