Skip to content

Commit

Permalink
添加助手docker构建ci
Browse files Browse the repository at this point in the history
  • Loading branch information
cn-kali-team committed Jan 12, 2024
1 parent cd26402 commit caced58
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 35 deletions.
33 changes: 0 additions & 33 deletions .github/workflows/publish-docker.yml

This file was deleted.

8 changes: 6 additions & 2 deletions DockerfileHelper
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,12 @@ WORKDIR /prod
COPY .cargo .cargo
RUN apt-get update
RUN apt-get install -y --no-install-recommends gcc-multilib xz-utils liblz4-tool libc6-dev libssl-dev default-libmysqlclient-dev pkg-config musl-tools patchelf build-essential zlib1g-dev ca-certificates
COPY ./ /prod
RUN cargo build --release --manifest-path=helper/Cargo.toml
COPY .cargo .cargo
COPY helper/Cargo.toml Cargo.toml
COPY nvd-server /nvd-server
RUN cargo fetch
COPY helper/src src
RUN cargo build --release

# Use any runner as you want
# But beware that some images have old glibc which makes rust unhappy
Expand Down

0 comments on commit caced58

Please sign in to comment.