1
1
mirror of https://github.com/theoludwig/programming-challenges.git synced 2024-12-08 00:45:29 +01:00
programming-challenges/templates/docker/dart/Dockerfile

11 lines
271 B
Docker
Raw Normal View History

2023-12-26 23:05:18 +01:00
FROM dart:3.2.4 AS builder
2022-12-30 00:55:21 +01:00
WORKDIR /usr/src/application
COPY ./ ./
RUN dart compile exe solution.dart -o solution
2022-12-30 00:55:21 +01:00
FROM scratch AS runner
WORKDIR /usr/src/application
COPY --from=builder /runtime/ /
COPY --from=builder /usr/src/application/solution ./
CMD ["./solution"]