From 27b3d11aa62ec8b9b7e33a0036569ba65ee1d404 Mon Sep 17 00:00:00 2001 From: Nathan Sobo Date: Mon, 13 Sep 2021 14:03:00 -0600 Subject: [PATCH] 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. --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 18623704e2..109aeb6503 100644 --- a/Dockerfile +++ b/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