diff --git a/compiled_starters/gleam/codecrafters.yml b/compiled_starters/gleam/codecrafters.yml index 6589fc2..7f675c4 100644 --- a/compiled_starters/gleam/codecrafters.yml +++ b/compiled_starters/gleam/codecrafters.yml @@ -7,5 +7,5 @@ debug: false # Use this to change the Gleam version used to run your code # on Codecrafters. # -# Available versions: gleam-1.4 -language_pack: gleam-1.4 +# Available versions: gleam-1.6 +language_pack: gleam-1.6 diff --git a/dockerfiles/gleam-1.6.Dockerfile b/dockerfiles/gleam-1.6.Dockerfile new file mode 100644 index 0000000..51b1056 --- /dev/null +++ b/dockerfiles/gleam-1.6.Dockerfile @@ -0,0 +1,17 @@ +# syntax=docker/dockerfile:1.7-labs +FROM ghcr.io/gleam-lang/gleam:v1.6.3-erlang-alpine + +# Rebuild if gleam.toml or manifest.toml change +ENV CODECRAFTERS_DEPENDENCY_FILE_PATHS="gleam.toml,manifest.toml" + +WORKDIR /app + +# .git & README.md are unique per-repository. We ignore them on first copy to prevent cache misses +COPY --exclude=.git --exclude=README.md . /app + +# Force deps to be downloaded +RUN gleam build + +# Cache build directory +RUN mkdir -p /app-cached +RUN mv build /app-cached/build diff --git a/solutions/gleam/01-dr6/code/codecrafters.yml b/solutions/gleam/01-dr6/code/codecrafters.yml index 6589fc2..7f675c4 100644 --- a/solutions/gleam/01-dr6/code/codecrafters.yml +++ b/solutions/gleam/01-dr6/code/codecrafters.yml @@ -7,5 +7,5 @@ debug: false # Use this to change the Gleam version used to run your code # on Codecrafters. # -# Available versions: gleam-1.4 -language_pack: gleam-1.4 +# Available versions: gleam-1.6 +language_pack: gleam-1.6