代码拉取完成,页面将自动刷新
FROM node:12-alpine as webapp
ENV BUILD 20220211-001
RUN apk add git && git clone https://github.com/sipcapture/homer-ui /app
WORKDIR /app
RUN npm install && npm install -g @angular/cli && npm run build
FROM golang:alpine as webapi
ENV BUILD 20220211-001
RUN apk --update add git make
COPY . /homer-app
WORKDIR /homer-app
RUN make modules && make all
FROM alpine
WORKDIR /
RUN apk --update add bash sed
# Create default directories
RUN mkdir -p /usr/local/homer
COPY --from=webapi /homer-app/homer-app .
COPY --from=webapi /homer-app/docker/webapp_config.json /usr/local/homer/etc/webapp_config.json
COPY --from=webapi /homer-app/swagger.json /usr/local/homer/etc/swagger.json
COPY --from=webapp /app/dist/homer-ui /usr/local/homer/dist
# Configure entrypoint
COPY ./docker/docker-entrypoint.sh /
COPY ./docker/docker-entrypoint.d/* /docker-entrypoint.d/
RUN chmod +x /docker-entrypoint.d/* /docker-entrypoint.sh
ENTRYPOINT ["/docker-entrypoint.sh"]
CMD ["/homer-app", "-webapp-config-path=/usr/local/homer/etc"]
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。