Merge pull request #2 from honestica/lrzsz

switch to Ubuntu for glibc compatibility, add lrzsz
This commit is contained in:
Fabien Poussin 2022-08-17 19:10:40 +02:00 committed by GitHub
commit f7032b58dd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 6 deletions

View File

@ -7,6 +7,7 @@ jobs:
- checkout
- setup_remote_docker:
docker_layer_caching: true
version: 20.10.14
- run:
name: Build Gotty Image
command: |

View File

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