# 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 Cargo.toml Cargo.toml COPY Cargo.lock Cargo.lock COPY src src FROM deps AS test COPY .cargo .cargo COPY config.toml config.toml COPY mastodon-data.toml mastodon-data.toml FROM deps AS build ARG APP_NAME=mastodon-image-uploader-bot WORKDIR /app RUN <