Dockerfile: Upgrade to Go 1.13

Signed-off-by: Michael Mayer <michael@liquidbytes.net>
This commit is contained in:
Michael Mayer 2019-09-19 09:22:44 -07:00
parent bdb24d2600
commit 6cbcc348b7
5 changed files with 8 additions and 4 deletions

View file

@ -1,4 +1,4 @@
FROM photoprism/development:20190818
FROM photoprism/development:20190919
# Set up project directory
WORKDIR "/go/src/github.com/photoprism/photoprism"

View file

@ -25,6 +25,8 @@ start:
go run cmd/photoprism/photoprism.go start -d
stop:
go run cmd/photoprism/photoprism.go stop
terminal:
docker-compose exec photoprism bash
migrate:
go run cmd/photoprism/photoprism.go migrate
install-bin:

View file

@ -82,12 +82,12 @@ RUN npm install --unsafe-perm=true --allow-root -g npm testcafe chromedriver
RUN npm config set cache ~/.cache/npm
# Install Go
ENV GOLANG_VERSION 1.12.7
ENV GOLANG_VERSION 1.13
RUN set -eux; \
\
url="https://golang.org/dl/go${GOLANG_VERSION}.linux-amd64.tar.gz"; \
wget -O go.tgz "$url"; \
echo "66d83bfb5a9ede000e33c6579a91a29e6b101829ad41fffb5c5bb6c900e109d9 *go.tgz" | sha256sum -c -; \
echo "68a2297eb099d1a76097905a2ce334e3155004ec08cdea85f24527be3c48e856 *go.tgz" | sha256sum -c -; \
tar -C /usr/local -xzf go.tgz; \
rm go.tgz; \
export PATH="/usr/local/go/bin:$PATH"; \

View file

@ -1,4 +1,4 @@
FROM photoprism/development:20190818 as build
FROM photoprism/development:20190919 as build
# Set up project directory
WORKDIR "/go/src/github.com/photoprism/photoprism"

2
go.mod
View file

@ -68,3 +68,5 @@ require (
gopkg.in/mgo.v2 v2.0.0-20180705113604-9856a29383ce // indirect
gopkg.in/yaml.v2 v2.2.2
)
go 1.13