mirror of
https://github.com/go-micro/go-micro.git
synced 2025-05-19 21:23:04 +02:00
Fix generating Dockerfile with Gomu (#2254)
Somehow I didn't test this and managed to forget to properly close a template control structure. This change fixes that.
This commit is contained in:
parent
0dd6afe128
commit
01b7b4409b
@ -5,7 +5,7 @@ var Dockerfile = `FROM golang:alpine AS builder
|
|||||||
ENV CGO_ENABLED=0 GOOS=linux
|
ENV CGO_ENABLED=0 GOOS=linux
|
||||||
WORKDIR /go/src/{{.Alias}}
|
WORKDIR /go/src/{{.Alias}}
|
||||||
RUN apk --update --no-cache add ca-certificates gcc libtool make musl-dev protoc
|
RUN apk --update --no-cache add ca-certificates gcc libtool make musl-dev protoc
|
||||||
COPY {{if not .Client}}Makefile {{end}go.mod go.sum ./
|
COPY {{if not .Client}}Makefile {{end}}go.mod go.sum ./
|
||||||
RUN {{if not .Client}}make init && {{end}}go mod download
|
RUN {{if not .Client}}make init && {{end}}go mod download
|
||||||
COPY . .
|
COPY . .
|
||||||
RUN make {{if not .Client}}proto {{end}}tidy build
|
RUN make {{if not .Client}}proto {{end}}tidy build
|
||||||
|
Loading…
x
Reference in New Issue
Block a user