tools/sqlx/Dockerfile
Adrian Wannenmacher 289814b646
All checks were successful
Publish SQLx container / publish (push) Successful in 4m50s
sqlx: make migration location configurable
2023-12-11 17:55:32 +01:00

14 lines
285 B
Docker

FROM rust:alpine as build
RUN apk add musl-dev
ARG VERSION
RUN cargo install sqlx-cli \
--version $VERSION \
--no-default-features \
-F postgres,rustls
FROM alpine
COPY --from=build /usr/local/cargo/bin/sqlx /usr/local/bin/sqlx
CMD sqlx migrate run --source $MIGRATIONS