Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

atomci-backend 与vue合并为一个镜像 #192

Open
colynn opened this issue Apr 3, 2023 · 1 comment
Open

atomci-backend 与vue合并为一个镜像 #192

colynn opened this issue Apr 3, 2023 · 1 comment
Assignees

Comments

@colynn
Copy link
Member

colynn commented Apr 3, 2023

您有什么需求,是否与某个功能或问题相关? 请描述
如题

你想要的解决方案是什么
基于go来代理静态文件

  • 请你通过留下👍 表情为此issue投票,帮助社区和维护者优先考虑这个请求;

  • 请不要留下 "+1 "或 "me too"的评论,它们会给问题订阅者带来额外的噪音,并且无助于优先处理请求。

  • 如果你有兴趣在这个问题上工作,或者已经提交了pull request,请留下评论.

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request

  • Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request

  • If you are interested in working on this issue or have submitted a pull request, please leave a comment.

@colynn colynn self-assigned this Apr 3, 2023
@colynn
Copy link
Member Author

colynn commented Jun 12, 2023

FROM node:14.20.0-alpine as atomci-ui
WORKDIR /root/app
COPY package.json .

ENV NPM_CONFIG_LOGLEVEL warn
ENV NPM_CONFIG_REGISTRY https://registry.npm.taobao.org

RUN yarn install --loglevel notice

COPY . .
RUN yarn run build

# 
# FROM nginx:1.16.0-alpine

# LABEL MAINTAINER="Colynn Liu <[email protected]>"

# ADD ./deploy/nginx/default.conf /etc/nginx/conf.d/default.conf
# COPY --from=node_cache /root/app/dist /usr/share/nginx/html


## build
FROM golang:1.18-buster AS build-env

ADD . /go/src/atomci

WORKDIR /go/src/atomci

RUN mkdir /go/src/atomci/dist

COPY --from=atomci-ui /root/app/dist  /go/src/atomci/dist

RUN make build

## run
FROM alpine:3.9

LABEL maintainer="Colynn Liu <[email protected]>"

ADD conf /atomci/conf

RUN mkdir -p /atomci && mkdir -p /atomci/log

WORKDIR /atomci

COPY --from=build-env /go/src/atomci/atomci /atomci

ENV PATH $PATH:/atomci

EXPOSE 8080
CMD ["./atomci"]

@colynn colynn changed the title 为v2.0版本准备,将atomci-backend 与vue合并为一个镜像 atomci-backend 与vue合并为一个镜像 Jun 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant