mirror of
https://github.com/sorenisanerd/gotty.git
synced 2025-04-02 17:10:29 +00:00
Merge pull request #2 from honestica/lrzsz
switch to Ubuntu for glibc compatibility, add lrzsz
This commit is contained in:
commit
f7032b58dd
@ -7,6 +7,7 @@ jobs:
|
||||
- checkout
|
||||
- setup_remote_docker:
|
||||
docker_layer_caching: true
|
||||
version: 20.10.14
|
||||
- run:
|
||||
name: Build Gotty Image
|
||||
command: |
|
||||
|
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