From 47837a607b591e2c1ac8b092cf3a14ba1c1a9b73 Mon Sep 17 00:00:00 2001 From: Dima Gerasimov Date: Sat, 7 Sep 2019 17:54:56 +0100 Subject: [PATCH] prettify gotty bit --- Dockerfile | 29 +++++++++++++++-------------- 1 file changed, 15 insertions(+), 14 deletions(-) diff --git a/Dockerfile b/Dockerfile index 3f16a91..c500fa3 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,18 +1,5 @@ FROM silex/emacs:master-alpine AS emacs - -### handle gotty -# based on https://github.com/dit4c/dockerfile-gotty -# Unfortunately, it's got fixed alpine version and missing dependency so easies was just to copy it -RUN apk add --update go git build-base && \ - mkdir -p /tmp/gotty && \ - GOPATH=/tmp/gotty go get github.com/yudai/gotty && \ - mv /tmp/gotty/bin/gotty /usr/local/bin/ && \ - apk del go git build-base && \ - rm -rf /tmp/gotty /var/cache/apk/* - -EXPOSE 8080 -### - +# 218 Mb. hmm wonder if building without GUI would help? # TODO check if git is necessary for emacs init.. # TODO FIXME not sure if xclip is necessary @@ -66,6 +53,20 @@ ENV UNAME="emacser" \ SHELL="/bin/bash" +### configure gotty +# based on https://github.com/dit4c/dockerfile-gotty +# Unfortunately, it's got fixed alpine version and missing dependency so easiest was just to copy it +RUN apk add --no-cache go git build-base && \ + mkdir -p /tmp/gotty && \ + GOPATH=/tmp/gotty go get github.com/yudai/gotty && \ + mv /tmp/gotty/bin/gotty /usr/local/bin/ && \ + apk del go git build-base && \ + rm -rf /tmp/gotty +EXPOSE 8080 +# binary takes about 14 Mb +### + + WORKDIR "${WORKSPACE}"