aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArthur Zamarin <arthurzam@gentoo.org>2023-02-19 22:35:54 +0200
committerArthur Zamarin <arthurzam@gentoo.org>2023-02-19 22:35:54 +0200
commit3f558c444945d8f859ec3df61a0403f084fb3f7e (patch)
treeb3240206846e4d0cbdb309e4e9c693a1a23e560b
parentUpdate all Go dependencies (diff)
downloadsoko-3f558c444945d8f859ec3df61a0403f084fb3f7e.tar.gz
soko-3f558c444945d8f859ec3df61a0403f084fb3f7e.tar.bz2
soko-3f558c444945d8f859ec3df61a0403f084fb3f7e.zip
Dockerfile: remove go get step
The `go get` step updates the dependencies to latest version, without us knowing if it works or not. This is not a good practice, and we should prefer to just update the go version in git tree. Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
-rw-r--r--Dockerfile3
-rw-r--r--Dockerfile.updater3
2 files changed, 0 insertions, 6 deletions
diff --git a/Dockerfile b/Dockerfile
index 5ecaaa8..f76dfe0 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,9 +1,6 @@
FROM golang:1.19.3 AS builder
WORKDIR /go/src/soko
COPY . /go/src/soko
-RUN go get github.com/go-pg/pg/v10
-RUN go get github.com/mcuadros/go-version
-RUN go get github.com/ulikunitz/xz
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -a -o bin .
FROM node:13 AS assetsbuilder
diff --git a/Dockerfile.updater b/Dockerfile.updater
index e0cc9da..35d50a1 100644
--- a/Dockerfile.updater
+++ b/Dockerfile.updater
@@ -1,9 +1,6 @@
FROM golang:1.19.3 AS builder
WORKDIR /go/src/soko
COPY . /go/src/soko
-RUN go get github.com/go-pg/pg/v9
-RUN go get github.com/mcuadros/go-version
-RUN go get github.com/ulikunitz/xz
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -a -o bin .