sp4ke 4 years ago committed by Elis Popescu
parent 5fcfdf5afa
commit 2c96d1614b

@ -1,8 +1,8 @@
FROM alpine:3.11
FROM alpine:3.12
ENV URL=http://localhost:5000
ARG build_deps="go make dep"
ARG build_deps="go make dep git npm"
ARG runtime_deps="dumb-init"
ARG user_id=1000
@ -11,9 +11,10 @@ COPY . /go/src/github.com/elisescu/tty-server
RUN apk update && \
apk add -u $build_deps $runtime_deps && \
adduser -D -H -h / -u $user_id tty-server && \
cd /go/src/github.com/elisescu/tty-server && \
cd /go/src/github.com/elisescu/tty-server/frontend && \
npm install && npm build && cd .. && \
GOPATH=/go dep ensure && \
GOPATH=/go make all && \
GOPATH=/go PATH=$GOPATH/bin:$PATH make all && \
cp tty-server /usr/bin/ && \
rm -r /go && \
apk del $build_deps

Loading…
Cancel
Save