From 7ecd0a9acbc33fcf3345abf5bf4d0a1b94e8386c Mon Sep 17 00:00:00 2001 From: Fabien Poussin Date: Wed, 17 Aug 2022 18:31:43 +0200 Subject: [PATCH] Dockerfile: switch to Ubuntu for glibc compatibility, add lrzsz --- Dockerfile | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Dockerfile b/Dockerfile index 72cd110..91134f9 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,15 +2,15 @@ FROM golang:1.16 WORKDIR /gotty COPY . /gotty -RUN apt-get update && apt-get install -y nodejs npm +RUN apt-get update -qq && apt-get install -qq nodejs npm RUN CGO_ENABLED=0 make -FROM alpine:latest +FROM ubuntu:22.04 -RUN apk update && \ - apk upgrade && \ - apk --no-cache add ca-certificates && \ - apk add bash +ENV TERM=linux +RUN apt-get update -qq && \ + apt-get install -qq ca-certificates bash lrzsz && \ + apt-get upgrade -qq WORKDIR /root COPY --from=0 /gotty/gotty /usr/bin/ CMD ["gotty", "-w", "bash"]