minor
This commit is contained in:
25
server/Dockerfile
Normal file
25
server/Dockerfile
Normal 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"]
|
||||
Reference in New Issue
Block a user