This commit is contained in:
2026-02-23 16:40:06 +03:00
commit a51d12bc89
169 changed files with 7973 additions and 0 deletions

25
server/Dockerfile Normal file
View File

@@ -0,0 +1,25 @@
FROM dart:stable AS build
WORKDIR /app
COPY pubspec.* ./
RUN dart pub get
COPY . .
RUN dart pub get --offline
RUN mkdir -p /app/build
RUN dart compile exe bin/server.dart -o /app/build/server
FROM debian:bookworm-slim
RUN apt-get update \
&& apt-get install -y --no-install-recommends ca-certificates \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /app
COPY --from=build /app/build/server /app/server
EXPOSE 8080
CMD ["/app/server"]