Skip to content
This repository was archived by the owner on Dec 28, 2024. It is now read-only.

Commit 01e3993

Browse files
committed
Scaffold solution for day03
1 parent 7a5130d commit 01e3993

File tree

3 files changed

+38
-2
lines changed

3 files changed

+38
-2
lines changed

day03/Dockerfile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
FROM golang:1.23-alpine
2+
WORKDIR /app
3+
COPY .. .
4+
RUN go build -o app day03/main.go
5+
EXPOSE 3000
6+
CMD ["./app"]

day03/main.go

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
package main
2+
3+
import (
4+
"github.com/terminalnode/adventofcode2024/common"
5+
)
6+
7+
func main() {
8+
common.Setup(2, part1, part2)
9+
}
10+
11+
func part1(
12+
input string,
13+
) string {
14+
return "Not solved yet"
15+
}
16+
17+
func part2(
18+
input string,
19+
) string {
20+
return "Not solved yet"
21+
}

docker-compose.yml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
services:
2-
day1:
2+
day01:
33
build:
44
context: .
55
dockerfile: day01/Dockerfile
@@ -8,7 +8,7 @@ services:
88
watch:
99
- action: rebuild
1010
path: ./day01/
11-
day2:
11+
day02:
1212
build:
1313
context: .
1414
dockerfile: day02/Dockerfile
@@ -17,3 +17,12 @@ services:
1717
watch:
1818
- action: rebuild
1919
path: ./day02/
20+
day03:
21+
build:
22+
context: .
23+
dockerfile: day03/Dockerfile
24+
ports: [ "3003:3000" ]
25+
develop:
26+
watch:
27+
- action: rebuild
28+
path: ./day03/

0 commit comments

Comments
 (0)