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
2023-04-02 22:25:13 +02:00

11 lines
272 B
Docker

FROM dart:2.19.6 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"]