Skip to content

Commit cfb6e7a

Browse files
committed
fix: correct formatting in Dockerfile and ensure proper copying of Cargo files
1 parent 57623ac commit cfb6e7a

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

Dockerfile

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,14 @@ RUN apt-get update && apt-get install -y \
99
libssl-dev \
1010
&& rm -rf /var/lib/apt/lists/*
1111

12+
13+
RUN rustup toolchain install nightly && rustup default nightly
14+
1215
# Create app directory
1316
WORKDIR /app
1417

1518
# Copy manifests
16-
COPY Cargo.toml ./
19+
COPY Cargo.toml Cargo.lock ./
1720

1821
# Copy source code
1922
COPY src ./src
@@ -22,7 +25,7 @@ COPY .sqlx ./.sqlx
2225
COPY sql_models ./sql_models
2326

2427
# Build the application in release mode
25-
RUN cargo build --release
28+
RUN cargo build --release
2629
# ============================================
2730
# Runtime Stage
2831
# ============================================

0 commit comments

Comments
 (0)