title: Binary was compiled with 'CGO_ENABLED=0', go-sqlite3 requires cgo to work. This is a stub
body: <p>I want to use sqlite3 in Golang project. But run it in docker container has some error.<code>Binary was compiled with 'CGO_ENABLED=0', go-sqlite3 requires cgo to work. This is a stub</code></p>
  
  <p>this is my build script</p>
  
  <pre><code>CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o main main.go
  </code></pre>
  
  <p>I can't use CGO_ENABLED=1 in mac computer.</p>
  
  <pre><code>FROM golang:1.13-alpine
  
  ENV WORK_DIR=/go
  ENV TIME_ZONE=Asia/Singapore
  RUN ln -snf /usr/share/zoneinfo/$TIME_ZONE /etc/localtime &amp;&amp; echo $TIME_ZONE &gt; /etc/timezone
  
  WORKDIR $WORK_DIR
  RUN mkdir -p logs
  COPY main .
  COPY config.conf .
  COPY basic.db ./data
  COPY db db
  
  ENTRYPOINT ./main -c config.conf
  </code></pre>
  
  <p>How can I use sqlite3 in the docker container. Or how can I build <code>CGO_ENABLED=1 GOOS=linux GOARCH=amd64 go build -o main main.go</code> Golang project</p>