Skip to content

Commit

Permalink
update amp packager to use Go 1.16 (#5646)
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickkettner authored Apr 6, 2021
1 parent fac5019 commit 54f23c0
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions packager/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,10 @@
# limitations under the License.

# Use an official Go runtime as a parent image
FROM golang:1.13
FROM golang:1.16

ENV GO111MODULE=on

# Install AMP Packager
# Run this if you want to go off master branch.
RUN go get -v github.com/ampproject/amppackager/cmd/amppkg@master
# RUN go get -v github.com/ampproject/amppackager/cmd/amppkg

# Clone amppackager files so we can use b3 directory
WORKDIR /data
# Get latet repo data to avoid caching the results of git clone. See https://stackoverflow.com/a/39278224/967
Expand All @@ -30,6 +25,10 @@ ADD https://api.github.com/repos/ampproject/amppackager/git/refs/heads/master ve
RUN git clone -b master https://github.com/ampproject/amppackager.git /data/amppackager
# RUN git clone https://github.com/ampproject/amppackager.git /data/amppackager

# Install AMP Packager
# Run this if you want to go off master branch.
RUN cd /data/amppackager/ && go install github.com/ampproject/amppackager/cmd/amppkg

# Seed the ocsp cache
WORKDIR /data/amppackager/testdata/b3
RUN ./seedcache.sh
Expand Down

0 comments on commit 54f23c0

Please sign in to comment.