This commit is contained in:
@@ -12,9 +12,10 @@ RUN echo "fn main() {}" > src/main.rs
|
||||
COPY Cargo.toml ./
|
||||
COPY Cargo.lock ./
|
||||
RUN cargo build --release --locked
|
||||
RUN rm /app/target/release/ohrwurm
|
||||
|
||||
COPY . .
|
||||
RUN cargo build --release --locked
|
||||
RUN cargo build --release --locked && cp /app/target/release/ohrwurm /ohrwurm
|
||||
|
||||
# Release image
|
||||
FROM debian:bullseye-slim
|
||||
@@ -22,6 +23,6 @@ FROM debian:bullseye-slim
|
||||
RUN apt-get update && apt-get install -y python3-pip ffmpeg
|
||||
RUN pip install -U yt-dlp
|
||||
|
||||
COPY --from=build /app/target/release/ohrwurm .
|
||||
COPY --from=build /ohrwurm .
|
||||
|
||||
CMD ["./ohrwurm"]
|
||||
|
||||
Reference in New Issue
Block a user