tools/sqlx/Dockerfile
Adrian Wannenmacher b65755797e
Some checks failed
Publish SQLx container / publish (push) Failing after 16s
fix sqlx tags
2023-12-06 15:46:02 +01:00

13 lines
291 B
Docker

FROM rust:alpine as build
RUN apk add musl-dev
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
VOLUME /migrations