25 lines
670 B
Docker
25 lines
670 B
Docker
FROM debian:latest AS BUILDER
|
|
# Obtain the Flutter SDK
|
|
WORKDIR /app
|
|
COPY . .
|
|
|
|
WORKDIR /
|
|
RUN apt-get update
|
|
RUN apt-get upgrade -y
|
|
RUN apt-get install -y git wget curl unzip xz-utils zip libglu1-mesa clang cmake ninja-build pkg-config liblzma-dev libstdc++-12-dev rsync
|
|
|
|
RUN wget -O flutter.tar.xz https://storage.googleapis.com/flutter_infra_release/releases/stable/linux/flutter_linux_3.22.1-stable.tar.xz
|
|
RUN tar -xvf flutter.tar.xz
|
|
|
|
WORKDIR /app
|
|
RUN rm RELEASE
|
|
RUN PATH=$PATH:/flutter/bin /bin/bash /app/compile.sh
|
|
|
|
FROM debian:latest
|
|
WORKDIR /app
|
|
RUN apt-get update
|
|
RUN apt-get upgrade -y
|
|
|
|
COPY --from=BUILDER /app/out/server /app/server
|
|
|
|
ENTRYPOINT ["/app/server"]
|