Cleanup Dockerfile
This commit is contained in:
parent
6e34729f00
commit
e1dae5cec1
|
@ -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 && \
|
||||
|
|
Loading…
Reference in New Issue