Initial project commit

This commit is contained in:
2022-01-24 21:39:14 +01:00
commit 1e673781cd
20 changed files with 848 additions and 0 deletions

28
Dockerfile Normal file
View File

@@ -0,0 +1,28 @@
FROM ubuntu:20.04 AS build
RUN apt update
RUN apt install -y curl git wget unzip tree
RUN apt clean
# download Flutter SDK from Flutter Github repo \
RUN git clone https://github.com/flutter/flutter.git /usr/local/flutter
# Set flutter environment path
ENV PATH="/usr/local/flutter/bin:/usr/local/flutter/bin/cache/dart-sdk/bin:${PATH}"
RUN flutter doctor
RUN flutter channel master
RUN flutter upgrade
RUN flutter config --enable-web
RUN mkdir /app/
COPY . /app/
WORKDIR /app/
RUN flutter build web && ls -lha
FROM nginx:alpine AS final
RUN apk update && apk add tree
RUN tree
WORKDIR /usr/share/nginx/html
COPY --from=build /app/build/web .
COPY nginx.conf /etc/nginx/nginx.conf
RUN tree