fix: docker build

This commit is contained in:
kieran 2025-01-30 12:15:07 +00:00
parent e11d7dc787
commit 70b8cd3c55
No known key found for this signature in database
GPG Key ID: DE71CEB3925BE941
4 changed files with 5 additions and 5 deletions

3
.dockerignore Normal file
View File

@ -0,0 +1,3 @@
**/target/
**/.git/
**/out/

View File

@ -19,6 +19,6 @@ steps:
- docker login -u kieran -p $TOKEN git.v0l.io - docker login -u kieran -p $TOKEN git.v0l.io
- docker login -u voidic -p $DOCKER_TOKEN - docker login -u voidic -p $DOCKER_TOKEN
- docker buildx create --name mybuilder --bootstrap --use - docker buildx create --name mybuilder --bootstrap --use
- docker buildx build --push --platform linux/amd64 -t git.v0l.io/kieran/zap-stream-core:latest -t voidic/zap-stream-core:latest . - docker buildx build --push --platform linux/amd64 -t git.v0l.io/kieran/zap-stream-core:latest -t voidic/zap-stream-core:latest -f ./crates/zap-stream/Dockerfile .
- kill $(cat /var/run/docker.pid) - kill $(cat /var/run/docker.pid)

View File

@ -1,3 +0,0 @@
target/
.git/
out/

View File

@ -31,7 +31,7 @@ RUN git clone --single-branch --branch release/7.1 https://git.ffmpeg.org/ffmpeg
--disable-static \ --disable-static \
--enable-shared && \ --enable-shared && \
make -j$(nproc) && make install make -j$(nproc) && make install
RUN cargo install --path . --bin zap-stream-core --root /app/build --features zap-stream RUN cargo install --path ./crates/zap-stream --root /app/build
FROM $IMAGE AS runner FROM $IMAGE AS runner
WORKDIR /app WORKDIR /app