aboutsummaryrefslogtreecommitdiff
path: root/_example/simple/Dockerfile
diff options
context:
space:
mode:
authorDiego Becciolini <diego.becciolini@nextdlp.com>2023-12-13 20:40:44 +0000
committermattn <mattn.jp@gmail.com>2023-12-14 10:25:47 +0900
commitc260ecf7e447bd648c14717b02146160354d6489 (patch)
treee64d88ba4eb6cc7ef35a31ce507a559879870200 /_example/simple/Dockerfile
parentUpdate amalgamation code (diff)
downloadgolite-c260ecf7e447bd648c14717b02146160354d6489.tar.gz
golite-c260ecf7e447bd648c14717b02146160354d6489.tar.xz
use locally checked out lib in the docker job
see https://github.com/mattn/go-sqlite3/pull/1177
Diffstat (limited to '_example/simple/Dockerfile')
-rw-r--r--_example/simple/Dockerfile2
1 files changed, 2 insertions, 0 deletions
diff --git a/_example/simple/Dockerfile b/_example/simple/Dockerfile
index c19f6e6..b8545da 100644
--- a/_example/simple/Dockerfile
+++ b/_example/simple/Dockerfile
@@ -26,7 +26,9 @@ WORKDIR /workspace
COPY . /workspace/
RUN \
+ cd _example/simple && \
go mod init github.com/mattn/sample && \
+ go mod edit -replace=github.com/mattn/go-sqlite3=../.. && \
go mod tidy && \
go install -ldflags='-s -w -extldflags "-static"' ./simple.go