fix: Remove Cargo.lock from Dockerfile and add it to git
Some checks failed
Lint and Build / Lint (push) Failing after 4s
Lint and Build / Build (push) Has been skipped
Lint and Build / Docker Build (push) Has been skipped

This commit is contained in:
goose 2026-02-22 00:12:50 -03:00
parent 1e9ca98c92
commit fe35240e82

View file

@ -10,14 +10,14 @@ RUN apt-get update && apt-get install -y \
libssl-dev \ libssl-dev \
&& rm -rf /var/lib/apt/lists/* && rm -rf /var/lib/apt/lists/*
# Copy Cargo files first for better caching # Copy Cargo.toml (Cargo.lock is optional for dev)
COPY Cargo.toml ./ COPY Cargo.toml ./
# Create dummy main.rs for dependency caching # Create dummy main.rs for dependency caching
RUN mkdir src && echo 'fn main() {}' > src/main.rs RUN mkdir src && echo 'fn main() {}' > src/main.rs
# Build dependencies (this layer will be cached) # Build dependencies (this layer will be cached)
RUN cargo build && rm -rf src RUN cargo build
# Copy actual source code # Copy actual source code
COPY src ./src COPY src ./src