# syntax=docker/dockerfile:1 FROM rust:1.83.0-slim-bullseye AS deps RUN apt update && apt install pkg-config openssl libssl-dev -y WORKDIR /app COPY src src COPY Cargo.toml Cargo.toml COPY Cargo.lock Cargo.lock FROM deps AS test COPY .cargo .cargo COPY config.toml config.toml COPY mastodon-data.toml mastodon-data.toml RUN cargo build FROM deps AS build ARG APP_NAME=mastodon-image-uploader-bot WORKDIR /app RUN <