mirror of
https://github.com/zed-industries/zed.git
synced 2024-12-24 17:28:40 +00:00
1537500fcb
We're going full monorepo. Co-Authored-By: Max Brunsfeld <maxbrunsfeld@gmail.com>
15 lines
496 B
Text
15 lines
496 B
Text
# syntax = docker/dockerfile:1.2
|
|
|
|
FROM rust as builder
|
|
WORKDIR app
|
|
RUN --mount=type=cache,target=/usr/local/cargo/registry \
|
|
--mount=type=cache,target=./target \
|
|
cargo install sqlx-cli --root=/app --target-dir=/app/target --version 0.5.5
|
|
|
|
FROM debian:buster-slim as runtime
|
|
RUN apt-get update; \
|
|
apt-get install -y --no-install-recommends libssl1.1
|
|
WORKDIR app
|
|
COPY --from=builder /app/bin/sqlx /app
|
|
COPY ./server/migrations /app/migrations
|
|
ENTRYPOINT ["/app/sqlx", "migrate", "run"]
|