Skip to content

Commit

Permalink
content: fix typo on multi-stage Dockerfile
Browse files Browse the repository at this point in the history
CGO_ENABLED needs to be there. Better to be explicit.
  • Loading branch information
nrxr committed Oct 24, 2019
1 parent 0ed42f1 commit e058e7e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion content/post/multi-stage-docker-for-go.md
Expand Up @@ -52,7 +52,8 @@ A simple Dockerfile with such characteristics would look like this:

FROM golang:alpine AS builder

ENV GOOS=linux \
ENV CGO_ENABLED=0 \
GOOS=linux \
GO111MODULE=on

WORKDIR /opt/app
Expand Down

0 comments on commit e058e7e

Please sign in to comment.