File: Dockerfile

package info (click to toggle)
tty-share 2.4.0%2Bds-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 8,416 kB
  • sloc: javascript: 153; makefile: 20; sh: 10
file content (18 lines) | stat: -rw-r--r-- 521 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
FROM alpine:3.12

ARG build_deps="go git"

COPY . /go/src/github.com/elisescu/tty-share

RUN apk update && apk add -u $build_deps


RUN cd /go/src/github.com/elisescu/tty-share && \
    GOPATH=/go go get github.com/go-bindata/go-bindata/... && \
    GOPATH=/go /go/bin/go-bindata --prefix server/frontend/static -o gobindata.go server/frontend/static/* && \
    GOPATH=/go go build && \
    cp tty-share /usr/bin/ && \
    rm -r /go && \
    apk del $build_deps

ENTRYPOINT ["/usr/bin/tty-share", "--command", "/bin/sh"]