Skip to content

Commit

Permalink
prettify gotty bit
Browse files Browse the repository at this point in the history
  • Loading branch information
karlicoss committed Sep 7, 2019
1 parent 18831e5 commit 47837a6
Showing 1 changed file with 15 additions and 14 deletions.
29 changes: 15 additions & 14 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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}"
Expand Down

0 comments on commit 47837a6

Please sign in to comment.