server: dockerfile: add todos for improvements

Signed-off-by: Max R. Carrara <max@aequito.sh>
This commit is contained in:
Max R. Carrara 2025-08-16 18:40:14 +02:00
parent 33c98019bb
commit 5b8b317e89

View file

@ -1,6 +1,7 @@
# Build stage # Build stage
FROM dart:3.5.0 AS build FROM dart:3.5.0 AS build
WORKDIR /app WORKDIR /app
# TODO: more fine-grained building
COPY . . COPY . .
# Install dependencies and compile the server executable # Install dependencies and compile the server executable
@ -23,6 +24,7 @@ COPY --from=build /runtime/ /
COPY --from=build /app/bin/server server COPY --from=build /app/bin/server server
# Copy configuration files and resources # Copy configuration files and resources
# TODO: don't copy entire config dir, only what's needed
COPY --from=build /app/config/ config/ COPY --from=build /app/config/ config/
COPY --from=build /app/web/ web/ COPY --from=build /app/web/ web/
COPY --from=build /app/migrations/ migrations/ COPY --from=build /app/migrations/ migrations/