From 64a19cd051eba69a108e5cef4c962661ca986ffb Mon Sep 17 00:00:00 2001 From: Patrick DeVivo Date: Mon, 19 Jul 2021 23:22:21 -0400 Subject: [PATCH] amend `README` installation instructions, fix up `Dockerfile` --- Dockerfile | 4 ++-- README.md | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index ccea5975..7b1b5d72 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,12 +6,12 @@ RUN ./install_libgit2.sh COPY go.mod go.sum ./ RUN go mod download COPY . . -RUN make build +RUN make FROM debian:buster-slim WORKDIR /app/ RUN mkdir /repo -COPY --from=builder /app/askgit . +COPY --from=builder /app/.build/askgit . RUN apt-get update && apt-get install -y git diff --git a/README.md b/README.md index 00e2d5da..11417329 100644 --- a/README.md +++ b/README.md @@ -35,12 +35,12 @@ The following (long 😬) `go install` commands can be used to install a binary On Mac: ``` -CGO_CFLAGS=-DUSE_LIBSQLITE3 CGO_LDFLAGS=-Wl,-undefined,dynamic_lookup go install -tags="sqlite_vtable,vtable,sqlite_json1,static,system_libgit2" github.com/askgitdev/askgit +CGO_CFLAGS=-DUSE_LIBSQLITE3 CGO_LDFLAGS=-Wl,-undefined,dynamic_lookup go install -tags="sqlite_vtable,vtable,sqlite_json1,static,system_libgit2" github.com/askgitdev/askgit@latest ``` On Linux: ``` -CGO_CFLAGS=-DUSE_LIBSQLITE3 CGO_LDFLAGS=-Wl,--unresolved-symbols=ignore-in-object-files go install -tags="sqlite_vtable,vtable,sqlite_json1,static,system_libgit2" github.com/askgitdev/askgit +CGO_CFLAGS=-DUSE_LIBSQLITE3 CGO_LDFLAGS=-Wl,--unresolved-symbols=ignore-in-object-files go install -tags="sqlite_vtable,vtable,sqlite_json1,static,system_libgit2" github.com/askgitdev/askgit@latest ``` See the [`Makefile`](https://github.com/askgitdev/askgit/blob/main/Makefile) for more context.