mirror of
https://github.com/zed-industries/zed.git
synced 2024-12-28 19:54:10 +03:00
Use bullseye-slim for migration Dockerfile
Closes #154 Co-Authored-By: Nathan Sobo <nathan@zed.dev> Co-Authored-By: Max Brunsfeld <max@zed.dev>
This commit is contained in:
parent
edfed001de
commit
cb2d8bac1d
@ -1,12 +1,12 @@
|
|||||||
# syntax = docker/dockerfile:1.2
|
# syntax = docker/dockerfile:1.2
|
||||||
|
|
||||||
FROM rust as builder
|
FROM rust:1.55-bullseye as builder
|
||||||
WORKDIR app
|
WORKDIR app
|
||||||
RUN --mount=type=cache,target=/usr/local/cargo/registry \
|
RUN --mount=type=cache,target=/usr/local/cargo/registry \
|
||||||
--mount=type=cache,target=./target \
|
--mount=type=cache,target=./target \
|
||||||
cargo install sqlx-cli --root=/app --target-dir=/app/target --version 0.5.7
|
cargo install sqlx-cli --root=/app --target-dir=/app/target --version 0.5.7
|
||||||
|
|
||||||
FROM debian:buster-slim as runtime
|
FROM debian:bullseye-slim as runtime
|
||||||
RUN apt-get update; \
|
RUN apt-get update; \
|
||||||
apt-get install -y --no-install-recommends libssl1.1
|
apt-get install -y --no-install-recommends libssl1.1
|
||||||
WORKDIR app
|
WORKDIR app
|
||||||
|
Loading…
Reference in New Issue
Block a user