Adrian Wannenmacher
f0e3598c0c
All checks were successful
Publish SQLx container / publish (push) Successful in 4m39s
15 lines
304 B
Docker
15 lines
304 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
|
|
VOLUME /migrations
|