fix: Remove Cargo.lock from COPY in Dockerfile (it is gitignored)
Some checks failed
Lint and Build / Lint (push) Failing after 3s
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:13:04 -03:00
parent fe35240e82
commit e555813290

View file

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