FROM centos:7
ARG app_env=production
ARG commit_hash
LABEL maintainer="shenjing.zhao@pingcap.com"
LABEL commit_hash="${commit_hash}"
LABEL app="pchub"
LABEL component="apiserver"
ENV GIN_MODE="release"
ENV APP_LOCATION="/usr/local/pchub"
ENV APP_LOG_LOCATION="/var/log/pchub"
RUN mkdir -p $APP_LOG_LOCATION
WORKDIR $APP_LOCATION
VOLUME [ "$APP_LOCATION/conf", "$APP_LOG_LOCATION" ]
COPY ./_output/platforms/linux/amd64/pchub-apiserver $APP_LOCATION
EXPOSE 8867
ENTRYPOINT /usr/local/pchub/pchub-apiserver -c=/usr/local/pchub/conf/pchub-apiserver.yaml
