pull/20/head
sp4ke 4 years ago committed by GitHub
parent 5fcfdf5afa
commit cce2a1c89c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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

Loading…
Cancel
Save