From 151f495e395bcc2efaf47871368cd8e3c944cb81 Mon Sep 17 00:00:00 2001 From: Guillaume Hivert Date: Sat, 3 Aug 2024 19:55:00 +0200 Subject: [PATCH] upgrade: use gleam 1.4.0 --- .mise.toml | 2 +- Dockerfile | 4 ++-- apps/backend/src/backend/config.gleam | 1 + 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.mise.toml b/.mise.toml index 7a9771d..b7e6878 100644 --- a/.mise.toml +++ b/.mise.toml @@ -1,6 +1,6 @@ # Runtimes used by the stack. [tools] -gleam = "1.3.2" +gleam = "1.4.0" erlang = "27" node = "22" deno = "latest" diff --git a/Dockerfile b/Dockerfile index 1ac8bc0..1e4a346 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM --platform=x86_64 ghcr.io/gleam-lang/gleam:v1.3.2-erlang-alpine AS builder +FROM --platform=x86_64 ghcr.io/gleam-lang/gleam:v1.4.0-erlang-alpine AS builder RUN apk add build-base ca-certificates RUN mkdir -p /build/backend/src @@ -10,7 +10,7 @@ COPY packages /packages RUN cd /build/backend && gleam export erlang-shipment -FROM --platform=x86_64 ghcr.io/gleam-lang/gleam:v1.3.2-erlang-alpine AS runner +FROM --platform=x86_64 ghcr.io/gleam-lang/gleam:v1.4.0-erlang-alpine AS runner LABEL org.opencontainers.image.source=https://github.com/ghivert/gloogle RUN apk add build-base ca-certificates inotify-tools diff --git a/apps/backend/src/backend/config.gleam b/apps/backend/src/backend/config.gleam index e57bd98..2a6cef2 100644 --- a/apps/backend/src/backend/config.gleam +++ b/apps/backend/src/backend/config.gleam @@ -5,6 +5,7 @@ import gleam/int import gleam/option.{type Option} import gleam/pgo import gleam/result +import gleam/string import wisp import wisp/logger