Skip to content

Commit

Permalink
πŸ› Update Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
malted committed Sep 10, 2024
1 parent 9a375d8 commit 623e9fc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "replit-takeout"
version = "1.7.10"
version = "1.7.11"
edition = "2021"
authors = ["Ben Dixon <malted@malted.dev>"]

Expand Down
8 changes: 4 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Start with a Rust base image
FROM rust:1.76 as builder
FROM rust:latest as builder

# Install protobuf compiler
RUN apt-get update && apt-get install -y protobuf-compiler
Expand All @@ -13,13 +13,13 @@ COPY ./Cargo.lock ./Cargo.lock
COPY ./Cargo.toml ./Cargo.toml

# Build dependencies first to cache them
RUN cargo build --release
RUN rm src/*.rs
# RUN cargo build --release
# RUN rm src/*.rs

COPY ./src ./src

# Build for release
RUN rm ./target/release/deps/replit_takeout*
# RUN rm ./target/release/deps/replit_takeout*
RUN cargo build --release

# Start a new stage with a newer base image
Expand Down

0 comments on commit 623e9fc

Please sign in to comment.