File tree 18 files changed +77
-21
lines changed
18 files changed +77
-21
lines changed Original file line number Diff line number Diff line change @@ -7,5 +7,5 @@ debug: false
7
7
# Use this to change the Elixir version used to run your code
8
8
# on Codecrafters.
9
9
#
10
- # Available versions: elixir-1.17
11
- language_pack : elixir-1.17
10
+ # Available versions: elixir-1.18
11
+ language_pack : elixir-1.18
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ defmodule App.MixProject do
6
6
[
7
7
app: :codecrafters_http_server ,
8
8
version: "1.0.0" ,
9
- elixir: "~> 1.17 " ,
9
+ elixir: "~> 1.18 " ,
10
10
start_permanent: Mix . env ( ) == :prod ,
11
11
deps: deps ( ) ,
12
12
escript: [ main_module: CLI ]
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ Time to move on to the next stage!
30
30
31
31
Note: This section is for stages 2 and beyond.
32
32
33
- 1 . Ensure you have ` cargo (1.85 ) ` installed locally
33
+ 1 . Ensure you have ` cargo (1.86 ) ` installed locally
34
34
1 . Run ` ./your_program.sh ` to run your program, which is implemented in
35
35
` src/main.rs ` . This command compiles your Rust project, so it might be slow
36
36
the first time you run it. Subsequent runs will be fast.
Original file line number Diff line number Diff line change @@ -7,5 +7,5 @@ debug: false
7
7
# Use this to change the Rust version used to run your code
8
8
# on Codecrafters.
9
9
#
10
- # Available versions: rust-1.85
11
- language_pack : rust-1.85
10
+ # Available versions: rust-1.86
11
+ language_pack : rust-1.86
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ Time to move on to the next stage!
30
30
31
31
Note: This section is for stages 2 and beyond.
32
32
33
- 1 . Ensure you have ` bun (1.1 ) ` installed locally
33
+ 1 . Ensure you have ` bun (1.2 ) ` installed locally
34
34
1 . Run ` ./your_program.sh ` to run your program, which is implemented in
35
35
` app/main.ts ` .
36
36
1 . Commit your changes and run ` git push origin master ` to submit your solution
Original file line number Diff line number Diff line change @@ -7,5 +7,5 @@ debug: false
7
7
# Use this to change the TypeScript version used to run your code
8
8
# on Codecrafters.
9
9
#
10
- # Available versions: bun-1.1
11
- language_pack : bun-1.1
10
+ # Available versions: bun-1.2
11
+ language_pack : bun-1.2
Original file line number Diff line number Diff line change
1
+ # syntax=docker/dockerfile:1.7-labs
2
+ FROM oven/bun:1.2-alpine
3
+
4
+ ENV CODECRAFTERS_DEPENDENCY_FILE_PATHS="package.json,bun.lockb"
5
+
6
+ WORKDIR /app
7
+
8
+ # .git & README.md are unique per-repository. We ignore them on first copy to prevent cache misses
9
+ COPY --exclude=.git --exclude=README.md . /app
10
+
11
+ # For reproducible builds.
12
+ # This will install the exact versions of each package specified in the lockfile.
13
+ # If package.json disagrees with bun.lockb, Bun will exit with an error. The lockfile will not be updated.
14
+ RUN bun install --frozen-lockfile
15
+
16
+ # If the node_modules directory exists, move it to /app-cached
17
+ RUN mkdir -p /app-cached
18
+ RUN if [ -d "/app/node_modules" ]; then mv /app/node_modules /app-cached; fi
Original file line number Diff line number Diff line change
1
+ # syntax=docker/dockerfile:1.7-labs
2
+ FROM elixir:1.18.3-alpine
3
+
4
+ # Ensures the container is re-built if dependency files change
5
+ ENV CODECRAFTERS_DEPENDENCY_FILE_PATHS="mix.exs"
6
+
7
+ WORKDIR /app
8
+
9
+ # .git & README.md are unique per-repository. We ignore them on first copy to prevent cache misses
10
+ COPY --exclude=.git --exclude=README.md . /app
11
+
12
+ # install hex + rebar
13
+ RUN mix local.hex --force && \
14
+ mix local.rebar --force
15
+
16
+ # install and compile mix dependencies
17
+ RUN mix deps.get && \
18
+ mix deps.compile
19
+
20
+ # Install & cache deps
21
+ RUN .codecrafters/compile.sh
22
+
23
+ RUN mkdir -p /app-cached
24
+ RUN if [ -d "/app/_build" ]; then mv /app/_build /app-cached; fi
25
+ RUN if [ -d "/app/deps" ]; then mv /app/deps /app-cached; fi
Original file line number Diff line number Diff line change
1
+ # syntax=docker/dockerfile:1.7-labs
2
+ FROM rust:1.86-bookworm
3
+
4
+ # Rebuild the container if these files change
5
+ ENV CODECRAFTERS_DEPENDENCY_FILE_PATHS="Cargo.toml,Cargo.lock"
6
+
7
+ WORKDIR /app
8
+
9
+ # .git & README.md are unique per-repository. We ignore them on first copy to prevent cache misses
10
+ COPY --exclude=.git --exclude=README.md . /app
11
+
12
+ # This runs cargo build
13
+ RUN .codecrafters/compile.sh
Original file line number Diff line number Diff line change @@ -7,5 +7,5 @@ debug: false
7
7
# Use this to change the Elixir version used to run your code
8
8
# on Codecrafters.
9
9
#
10
- # Available versions: elixir-1.17
11
- language_pack : elixir-1.17
10
+ # Available versions: elixir-1.18
11
+ language_pack : elixir-1.18
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ defmodule App.MixProject do
6
6
[
7
7
app: :codecrafters_http_server ,
8
8
version: "1.0.0" ,
9
- elixir: "~> 1.17 " ,
9
+ elixir: "~> 1.18 " ,
10
10
start_permanent: Mix . env ( ) == :prod ,
11
11
deps: deps ( ) ,
12
12
escript: [ main_module: CLI ]
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ Time to move on to the next stage!
30
30
31
31
Note: This section is for stages 2 and beyond.
32
32
33
- 1 . Ensure you have ` cargo (1.85 ) ` installed locally
33
+ 1 . Ensure you have ` cargo (1.86 ) ` installed locally
34
34
1 . Run ` ./your_program.sh ` to run your program, which is implemented in
35
35
` src/main.rs ` . This command compiles your Rust project, so it might be slow
36
36
the first time you run it. Subsequent runs will be fast.
Original file line number Diff line number Diff line change @@ -7,5 +7,5 @@ debug: false
7
7
# Use this to change the Rust version used to run your code
8
8
# on Codecrafters.
9
9
#
10
- # Available versions: rust-1.85
11
- language_pack : rust-1.85
10
+ # Available versions: rust-1.86
11
+ language_pack : rust-1.86
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ Time to move on to the next stage!
30
30
31
31
Note: This section is for stages 2 and beyond.
32
32
33
- 1 . Ensure you have ` bun (1.1 ) ` installed locally
33
+ 1 . Ensure you have ` bun (1.2 ) ` installed locally
34
34
1 . Run ` ./your_program.sh ` to run your program, which is implemented in
35
35
` app/main.ts ` .
36
36
1 . Commit your changes and run ` git push origin master ` to submit your solution
Original file line number Diff line number Diff line change @@ -7,5 +7,5 @@ debug: false
7
7
# Use this to change the TypeScript version used to run your code
8
8
# on Codecrafters.
9
9
#
10
- # Available versions: bun-1.1
11
- language_pack : bun-1.1
10
+ # Available versions: bun-1.2
11
+ language_pack : bun-1.2
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ defmodule App.MixProject do
6
6
[
7
7
app: :codecrafters_http_server ,
8
8
version: "1.0.0" ,
9
- elixir: "~> 1.17 " ,
9
+ elixir: "~> 1.18 " ,
10
10
start_permanent: Mix . env ( ) == :prod ,
11
11
deps: deps ( ) ,
12
12
escript: [ main_module: CLI ]
Original file line number Diff line number Diff line change 1
1
attributes :
2
- required_executable : cargo (1.85 )
2
+ required_executable : cargo (1.86 )
3
3
user_editable_file : src/main.rs
Original file line number Diff line number Diff line change 1
1
attributes :
2
- required_executable : bun (1.1 )
2
+ required_executable : bun (1.2 )
3
3
user_editable_file : app/main.ts
You can’t perform that action at this time.
0 commit comments