mirror of
https://github.com/theoludwig/programming-challenges.git
synced 2024-11-09 22:08:58 +01:00
11 lines
271 B
Docker
11 lines
271 B
Docker
FROM dart:3.0.7 AS builder
|
|
WORKDIR /usr/src/application
|
|
COPY ./ ./
|
|
RUN dart compile exe solution.dart -o solution
|
|
|
|
FROM scratch AS runner
|
|
WORKDIR /usr/src/application
|
|
COPY --from=builder /runtime/ /
|
|
COPY --from=builder /usr/src/application/solution ./
|
|
CMD ["./solution"]
|