mirror of
https://github.com/zed-industries/zed.git
synced 2024-11-08 07:35:01 +03:00
ab8204368c
Over time, I think we may end up having multiple services, so it seems like a good opportunity to name this one more specifically while the cost is low. It just seems like naming it "zed" and "zed-server" leaves it a bit open ended.
16 lines
512 B
Docker
16 lines
512 B
Docker
# syntax = docker/dockerfile:1.2
|
|
|
|
FROM rust:1.58-bullseye 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.7
|
|
|
|
FROM debian:bullseye-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 ./collab/migrations /app/migrations
|
|
ENTRYPOINT ["/app/sqlx", "migrate", "run"]
|