mirror of
https://github.com/sorenisanerd/gotty.git
synced 2025-04-02 17:10:29 +00:00
Dockerfile: switch to Ubuntu for glibc compatibility, add lrzsz
This commit is contained in:
parent
d8191b1995
commit
7ecd0a9acb
12
Dockerfile
12
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"]
|
||||
|
Loading…
x
Reference in New Issue
Block a user