e81be1b4d2
CI / docker_build (linux/arm/v7, minimal) (push) Has been cancelled
CI / docker_build (linux/arm64, duckdb) (push) Has been cancelled
CI / docker_build (linux/arm64, minimal) (push) Has been cancelled
CI / docker_push (duckdb) (push) Has been cancelled
CI / docker_push (minimal) (push) Has been cancelled
Create Release / Build sqlpage binaries (macOS & Windows) (.exe, , windows-latest, x86_64-pc-windows-msvc) (push) Has been cancelled
CI / compile_and_lint (push) Has been cancelled
CI / test (mssql, mssql, mssql://root:Password123!@127.0.0.1/sqlpage) (push) Has been cancelled
CI / test (mysql, mysql, mysql://root:Password123!@127.0.0.1/sqlpage) (push) Has been cancelled
CI / test (oracle, oracle, Driver=Oracle 21 ODBC driver;Dbq=//127.0.0.1:1521/FREEPDB1;Uid=root;Pwd=Password123!) (push) Has been cancelled
CI / test (postgres, odbc, Driver=PostgreSQL Unicode;Server=127.0.0.1;Port=5432;Database=sqlpage;UID=root;PWD=Password123!, true) (push) Has been cancelled
CI / test (postgres, postgres, postgres://root:Password123!@127.0.0.1/sqlpage) (push) Has been cancelled
CI / windows_test (push) Has been cancelled
CI / docker_build (linux/amd64, duckdb) (push) Has been cancelled
CI / docker_build (linux/amd64, minimal) (push) Has been cancelled
Create Release / Build sqlpage binaries (macOS & Windows) (odbc-static, macos-latest, x86_64-apple-darwin) (push) Has been cancelled
Create Release / Build sqlpage binaries (Linux) (push) Has been cancelled
Create Release / Build AWS Lambda Serverless zip image (push) Has been cancelled
Create Release / Create Github Release (push) Has been cancelled
Create Release / Publish to crates.io (push) Has been cancelled
19 lines
607 B
Docker
19 lines
607 B
Docker
FROM rust:1.95-alpine AS builder
|
|
RUN rustup component add clippy rustfmt
|
|
RUN apk add --no-cache musl-dev zip
|
|
WORKDIR /usr/src/sqlpage
|
|
RUN cargo init .
|
|
COPY Cargo.toml Cargo.lock ./
|
|
RUN cargo build --release
|
|
COPY . .
|
|
RUN cargo build --release --features lambda-web
|
|
RUN mv target/release/sqlpage bootstrap && \
|
|
strip --strip-all bootstrap && \
|
|
size bootstrap && \
|
|
zip -9 -r deploy.zip bootstrap index.sql
|
|
|
|
FROM public.ecr.aws/lambda/provided:al2 AS runner
|
|
COPY --from=builder /usr/src/sqlpage/bootstrap /main
|
|
COPY --from=builder /usr/src/sqlpage/index.sql ./index.sql
|
|
ENTRYPOINT ["/main"]
|