ConanServerManager/Dockerfile

27 lines
696 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 libgtk3-dev liblzma-dev libstdc++-12-dev rsync
RUN curl -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 /flutter
RUN export PATH=$PATH:/flutter/bin
WORKDIR /app
RUN /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"]