mirror of
https://github.com/zed-industries/zed.git
synced 2024-12-25 01:34:02 +00:00
Make the builder and runtime OS versions match
We can't build the latest server on buster, but we were using "latest" so it actually was building on bullseye. Then we tried to run it on buster and it blew up. This locks both versions to bullseye so we're running on the same environment where we build.
This commit is contained in:
parent
c14ebb264f
commit
27b3d11aa6
1 changed files with 2 additions and 2 deletions
|
@ -1,6 +1,6 @@
|
|||
# syntax = docker/dockerfile:1.2
|
||||
|
||||
FROM rust as builder
|
||||
FROM rust:1.55-bullseye as builder
|
||||
WORKDIR app
|
||||
RUN curl -fsSL https://deb.nodesource.com/setup_16.x | bash -
|
||||
RUN apt-get install -y nodejs
|
||||
|
@ -25,7 +25,7 @@ RUN --mount=type=cache,target=./target \
|
|||
cp /app/target/release/zed-server /app/zed-server
|
||||
|
||||
# Copy server binary to the runtime image
|
||||
FROM debian:buster-slim as runtime
|
||||
FROM debian:bullseye-slim as runtime
|
||||
RUN apt-get update; \
|
||||
apt-get install -y --no-install-recommends libcurl4-openssl-dev ca-certificates
|
||||
WORKDIR app
|
||||
|
|
Loading…
Reference in a new issue