1
0
mirror of https://github.com/muety/wakapi.git synced 2023-08-10 21:12:56 +03:00

chore: update Docker to use golang:1.17-alpine

This commit is contained in:
Steven Tang 2022-01-03 12:04:57 +11:00
parent 4f183ed637
commit 2bb3b886c2
No known key found for this signature in database
GPG Key ID: AA0C5A4496B7ADF5

View File

@ -1,7 +1,7 @@
# To build locally: docker buildx build . -t wakapi --load # To build locally: docker buildx build . -t wakapi --load
# Preparation to save some time # Preparation to save some time
FROM --platform=$BUILDPLATFORM golang:1.16-alpine AS prep-env FROM --platform=$BUILDPLATFORM golang:1.17-alpine AS prep-env
WORKDIR /src WORKDIR /src
ADD ./go.mod . ADD ./go.mod .
@ -12,7 +12,7 @@ RUN wget "https://raw.githubusercontent.com/vishnubob/wait-for-it/master/wait-fo
chmod +x wait-for-it.sh chmod +x wait-for-it.sh
# Build Stage # Build Stage
FROM golang:1.16-alpine AS build-env FROM golang:1.17-alpine AS build-env
# Required for go-sqlite3 # Required for go-sqlite3
RUN apk add --no-cache gcc musl-dev RUN apk add --no-cache gcc musl-dev