Skip to content

Commit

Permalink
Merge pull request #277 from codecrafters-io/upgrade-gleam-1.6
Browse files Browse the repository at this point in the history
Upgrade Gleam to 1.6
  • Loading branch information
andy1li authored Nov 20, 2024
2 parents 30ff79a + fea3d66 commit 536c761
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 4 deletions.
4 changes: 2 additions & 2 deletions compiled_starters/gleam/codecrafters.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
17 changes: 17 additions & 0 deletions dockerfiles/gleam-1.6.Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# syntax=docker/dockerfile:1.7-labs
FROM ghcr.io/gleam-lang/gleam:v1.6.1-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
4 changes: 2 additions & 2 deletions solutions/gleam/01-jm1/code/codecrafters.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 536c761

Please sign in to comment.