Skip to content

Commit cce5a40

Browse files
committed
fix docker releases
1 parent 59a90d3 commit cce5a40

File tree

4 files changed

+35
-24
lines changed

4 files changed

+35
-24
lines changed

.dockerignore

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
target
2+
.git
3+
node_modules
4+
docs
5+
docspring
6+
.nx
7+
.circleci
8+
.cursor
9+
.vscode
10+
.renamify
11+
build
12+
*.DS_Store
13+
integration_tests
14+
docs/**
15+
docspring/**

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ jobs:
211211
echo "Building docspringcom/cigen:${VERSION} and :latest"
212212
docker buildx build \
213213
--platform linux/amd64,linux/arm64 \
214-
-f docker/cigen.Dockerfile \
214+
-f Dockerfile \
215215
--build-arg CIGEN_VERSION="${VERSION}" \
216216
-t docspringcom/cigen:"${VERSION}" \
217217
-t docspringcom/cigen:latest \

Dockerfile

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
### Builder stage: compile cigen from source
2+
FROM rust:1.88 AS builder
3+
WORKDIR /app
4+
5+
# Copy source and build
6+
COPY . .
7+
RUN cargo build --release --locked --bin cigen
8+
9+
### Runtime stage
10+
FROM debian:bookworm-slim
11+
12+
RUN apt-get update && apt-get install -y --no-install-recommends --no-upgrade \
13+
ca-certificates curl jq bash git \
14+
&& rm -rf /var/lib/apt/lists/* /var/cache/apt/archives/*
15+
16+
# Copy compiled binary from builder
17+
COPY --from=builder /app/target/release/cigen /usr/local/bin/cigen
18+
19+
ENTRYPOINT ["cigen"]

docker/cigen.Dockerfile

Lines changed: 0 additions & 23 deletions
This file was deleted.

0 commit comments

Comments
 (0)