From 2c96d1614b75ba05926adb7b1221640da42b2825 Mon Sep 17 00:00:00 2001 From: sp4ke Date: Fri, 9 Oct 2020 02:54:12 +0100 Subject: [PATCH] Fix #17 --- Dockerfile | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 4c34f90..6c5a6c0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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