Dockerfiles: Upgrade Go to 1.16.3
This commit is contained in:
parent
ab40583c9a
commit
2c7f0dc55d
5 changed files with 8 additions and 8 deletions
|
@ -1,4 +1,4 @@
|
|||
FROM photoprism/development:20210226
|
||||
FROM photoprism/development:20210411
|
||||
|
||||
# Set up project directory
|
||||
WORKDIR "/go/src/github.com/photoprism/photoprism"
|
||||
|
|
|
@ -96,12 +96,12 @@ RUN npm install --unsafe-perm=true --allow-root -g npm testcafe chromedriver &&
|
|||
npm config set cache ~/.cache/npm
|
||||
|
||||
# Install Go
|
||||
ENV GOLANG_VERSION 1.16
|
||||
ENV GOLANG_VERSION 1.16.3
|
||||
RUN set -eux; \
|
||||
\
|
||||
url="https://golang.org/dl/go${GOLANG_VERSION}.linux-amd64.tar.gz"; \
|
||||
wget -O go.tgz "$url"; \
|
||||
echo "013a489ebb3e24ef3d915abe5b94c3286c070dfe0818d5bca8108f1d6e8440d2 *go.tgz" | sha256sum -c -; \
|
||||
echo "951a3c7c6ce4e56ad883f97d9db74d3d6d80d5fec77455c6ada6c1f7ac4776d2 *go.tgz" | sha256sum -c -; \
|
||||
tar -C /usr/local -xzf go.tgz; \
|
||||
rm go.tgz; \
|
||||
export PATH="/usr/local/go/bin:$PATH"; \
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
FROM photoprism/development:20210226 as build
|
||||
FROM photoprism/development:20210411 as build
|
||||
|
||||
# Set up project directory
|
||||
WORKDIR "/go/src/github.com/photoprism/photoprism"
|
||||
|
|
|
@ -72,12 +72,12 @@ RUN npm install --unsafe-perm=true --allow-root -g npm
|
|||
RUN npm config set cache ~/.cache/npm
|
||||
|
||||
# Install Go
|
||||
ENV GOLANG_VERSION 1.16
|
||||
ENV GOLANG_VERSION 1.16.3
|
||||
RUN set -eux; \
|
||||
\
|
||||
url="https://golang.org/dl/go${GOLANG_VERSION}.linux-armv6l.tar.gz"; \
|
||||
curl -o go.tgz -L "$url"; \
|
||||
echo "d1d9404b1dbd77afa2bdc70934e10fbfcf7d785c372efc29462bb7d83d0a32fd *go.tgz" | sha256sum -c -; \
|
||||
echo "0dae30385e3564a557dac7f12a63eedc73543e6da0f6017990e214ce8cc8797c *go.tgz" | sha256sum -c -; \
|
||||
tar -C /usr/local -xzf go.tgz; \
|
||||
rm go.tgz; \
|
||||
export PATH="/usr/local/go/bin:$PATH"; \
|
||||
|
|
|
@ -72,12 +72,12 @@ RUN npm install --unsafe-perm=true --allow-root -g npm && \
|
|||
npm config set cache ~/.cache/npm
|
||||
|
||||
# Install Go
|
||||
ENV GOLANG_VERSION 1.16
|
||||
ENV GOLANG_VERSION 1.16.3
|
||||
RUN set -eux; \
|
||||
\
|
||||
url="https://golang.org/dl/go${GOLANG_VERSION}.linux-arm64.tar.gz"; \
|
||||
wget -O go.tgz "$url"; \
|
||||
echo "3770f7eb22d05e25fbee8fb53c2a4e897da043eb83c69b9a14f8d98562cd8098 *go.tgz" | sha256sum -c -; \
|
||||
echo "566b1d6f17d2bc4ad5f81486f0df44f3088c3ed47a3bec4099d8ed9939e90d5d *go.tgz" | sha256sum -c -; \
|
||||
tar -C /usr/local -xzf go.tgz; \
|
||||
rm go.tgz; \
|
||||
export PATH="/usr/local/go/bin:$PATH"; \
|
||||
|
|
Loading…
Reference in a new issue