Skip to content

Commit

Permalink
opt code
Browse files Browse the repository at this point in the history
  • Loading branch information
zmisgod committed Dec 29, 2024
1 parent a79ecc7 commit d292783
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 10 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/docker-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,13 @@ jobs:
echo "IPTVCHECKER_LATEST_TAG:${IPTVCHECKER_LATEST_TAG}"
echo ::set-output name=tags::${TAGS}
mkdir iptv-checker && cp dockerfile iptv-checker/dockerfile
git clone git@github.com:zhimin-dev/iptv-checker-rs.git
git clone git@github.com:zhimin-dev/iptv-checker-ui-interface.git
- name: Checkout iptv-checker-ui-interface
uses: actions/checkout@v4
with:
repository: zhimin-dev/iptv-checker-ui-interface
path: ./iptv-checker-ui-interface
token: ${{ secrets.GH_PAT }}

- name: Setup Docker Buildx Command
id: buildx
Expand Down
8 changes: 0 additions & 8 deletions dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
# 基础镜像(用于构建前端代码)
FROM debian:buster-slim as frontend-builder
# 设置工作目录
WORKDIR /usr/src/app
# 复制前端代码
COPY iptv-checker-ui-interface/dist ./frontend

# 后端构建阶段
FROM rust:latest as backend-builder
# 设置工作目录
Expand All @@ -25,7 +18,6 @@ RUN apt-get install openssl -y
RUN apt-get install ffmpeg -y

# 复制前端代码
COPY --from=frontend-builder /usr/src/app/frontend ./web
RUN mkdir -p ./static/input
RUN mkdir -p ./static/output
# 复制后端构建结果
Expand Down

0 comments on commit d292783

Please sign in to comment.