FROM centos:7
ARG app_env=production
ARG commit_hash
LABEL maintainer="shenjing.zhao@pingcap.com"
LABEL commit_hash="${commit_hash}"
LABEL app="security"
LABEL component="phishing-alert-server"
ENV GIN_MODE="release"
ENV APP_LOCATION="/usr/local/phi"
ENV APP_CONF_DIR="/usr/local/phi/conf"
RUN mkdir -p $APP_CONF_DIR
WORKDIR $APP_LOCATION
VOLUME [ "$APP_CONF_DIR" ]
COPY ./_output/platforms/linux/amd64/phishing-alert-server $APP_LOCATION
EXPOSE 8868
ENTRYPOINT /usr/local/phi/phishing-alert-server -c=/usr/local/phi/conf/phishing-alert-server.yaml
