Cleanup Dockerfile

This commit is contained in:
Vikram Rangnekar 2019-03-28 01:51:46 -04:00
parent 6e34729f00
commit e1dae5cec1
1 changed files with 3 additions and 4 deletions

View File

@ -1,14 +1,13 @@
FROM golang:1.12-alpine as builder
RUN apk update && \
apk add --no-cache git && \
apk add --no-cache upx=3.95-r1
COPY . /app
WORKDIR /app
RUN go get github.com/GeertJohan/go.rice/rice && \
go get github.com/pilu/fresh
WORKDIR /app
ADD . /app
ENV GO111MODULE=on
RUN go mod vendor
RUN rice -i ./serv embed-go && \