1 Star 0 Fork 0

glaye/homer-app

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Dockerfile 1015 Bytes
一键复制 编辑 原始数据 按行查看 历史
Dan Shields 提交于 2022-04-25 09:37 . Copy swagger.json to docker container
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"]
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/glaye/homer-app.git
git@gitee.com:glaye/homer-app.git
glaye
homer-app
homer-app
master

搜索帮助