Skip to content

Commit

Permalink
Fix build for alpine 3.19 and update to Go 1.21 (#163)
Browse files Browse the repository at this point in the history
  • Loading branch information
zozs authored Dec 11, 2023
1 parent a65255f commit c3bda1e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
7 changes: 3 additions & 4 deletions build/docker/alpine.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golang:1.20-alpine AS dev
FROM golang:1.21-alpine AS dev
WORKDIR /cli
RUN apk update \
&& apk --no-cache --update add git build-base
Expand Down Expand Up @@ -44,7 +44,7 @@ RUN apk --no-cache --update add \
python3 \
py3-scipy \
py3-pip \
go~=1.20 \
go~=1.21 \
nodejs \
yarn \
dotnet7-sdk \
Expand All @@ -59,8 +59,7 @@ RUN apk add --no-cache \
php82-curl \
php82-mbstring \
php82-openssl \
php82-phar \
&& ln -s /usr/bin/php82 /usr/bin/php
php82-phar

RUN apk add --no-cache --virtual build-dependencies curl && \
curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/bin --filename=composer \
Expand Down
6 changes: 3 additions & 3 deletions build/docker/debian.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golang:1.20-bullseye AS dev
FROM golang:1.21-bullseye AS dev
WORKDIR /cli
RUN apt -y update && apt -y upgrade && apt -y install git && \
apt -y clean && rm -rf /var/lib/apt/lists/*
Expand Down Expand Up @@ -73,13 +73,13 @@ RUN apt -y update && apt -y upgrade && apt -y install openjdk-11-jre \
python3-venv \
ca-certificates \
python3-pip && \
apt -y install -t testing golang-1.20 && \
apt -y install -t testing golang-1.21 && \
apt -y clean && rm -rf /var/lib/apt/lists/* && \
# Symlink pip3 to pip, we assume that "pip" works in CLI
ln -sf /usr/bin/pip3 /usr/bin/pip && \
ln -sf /usr/bin/python3 /usr/bin/python && \
# Symlink go binary to bin directory which is in path
ln -s /usr/lib/go-1.20/bin/go /usr/bin/go
ln -s /usr/lib/go-1.21/bin/go /usr/bin/go

RUN dotnet --version

Expand Down

0 comments on commit c3bda1e

Please sign in to comment.