Skip to content

Commit

Permalink
Dockerfiles: update beemo and bigsky builds to golang v1.20
Browse files Browse the repository at this point in the history
Matching existing change to 'lablemaker' and golang CI action.

This fixes a container error with bigsky, using new unsafe.StringDef
code.
  • Loading branch information
bnewbold committed May 2, 2023
1 parent 5e98aed commit 3eca172
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
4 changes: 2 additions & 2 deletions cmd/beemo/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
# podman build -f ./cmd/beemo/Dockerfile -t beemo .

### Compile stage
FROM alpine:3.17 AS build-env
RUN apk add --no-cache build-base make go git
FROM golang:1.20-alpine3.17 AS build-env
RUN apk add --no-cache build-base make git

ADD . /dockerbuild
WORKDIR /dockerbuild
Expand Down
9 changes: 2 additions & 7 deletions cmd/bigsky/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,8 @@
# podman build -f ./cmd/bigsky/Dockerfile -t bigsky .

### Compile stage

# trouble with 'No such file or directory' when building using 'golang:1.19'
# images, I think because of library errors when copied to 'alpine' image below
# https://megamorf.gitlab.io/2019/09/08/alpine-go-builds-with-cgo-enabled/
# TODO: lock to a specific version of go toolchain
FROM alpine:3.17 AS build-env
RUN apk add --no-cache build-base make go git
FROM golang:1.20-alpine3.17 AS build-env
RUN apk add --no-cache build-base make git

ADD . /dockerbuild
WORKDIR /dockerbuild
Expand Down

0 comments on commit 3eca172

Please sign in to comment.