Skip to content

Commit 772f84e

Browse files
committed
fix: remove dummy caching build
1 parent ea26964 commit 772f84e

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

Dockerfile

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,21 +9,13 @@ RUN apt-get update && apt-get install -y \
99
libssl-dev \
1010
&& rm -rf /var/lib/apt/lists/*
1111

12-
# Copy manifests
12+
# Copy everything and build
1313
COPY Cargo.toml Cargo.lock ./
14-
15-
# Create dummy src to cache dependencies
16-
RUN mkdir -p src assets && echo "fn main() {}" > src/main.rs
17-
RUN cargo build --release || true
18-
RUN rm -rf src
19-
20-
# Copy actual source
2114
COPY src ./src
2215
COPY assets ./assets
2316
COPY TwoDark.tmTheme ./TwoDark.tmTheme
2417
COPY editor.png ./editor.png
2518

26-
# Build release
2719
RUN cargo build --release
2820

2921
# Runtime stage

0 commit comments

Comments
 (0)