Make the builder and runtime OS versions match

Nathan Sobo created

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.

Change summary

Dockerfile | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

Detailed changes

Dockerfile 🔗

@@ -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