Initial commit

This commit is contained in:
PapaTutuWawa 2023-10-07 22:54:56 +02:00
commit f4a8101f77
2 changed files with 37 additions and 0 deletions

19
.woodpecker.yml Normal file
View File

@ -0,0 +1,19 @@
variables:
- &flutter_version '3.13.6'
steps:
docker-build:
image: woodpeckerci/plugin-docker-buildx
settings:
repo: git.polynom.me/papatutuwawa/docker-flutter
registry: git.polynom.me
platforms: linux/arm64/v8
tag: *flutter_version
build_args:
FLUTTER_VERSION: *flutter_version
auto_tag: true
username:
from_secret: repository_username
password:
from_secret: repository_password
secrets: [ repository_username, repository_password ]

18
Dockerfile Normal file
View File

@ -0,0 +1,18 @@
FROM debian:bookworm-20230919-slim
# The version of Flutter to use
ARG FLUTTER_VERSION
# Set environment variables
ENV PATH="$PATH:/opt/flutter/bin"
RUN apt-get update && apt-get install -y git curl unzip
RUN mkdir -p /opt && \
git clone --depth=1 -b $FLUTTER_VERSION https://github.com/flutter/flutter.git /opt/flutter
# Install Flutter's Linux dependencies and pre-cache dependencies
#RUN apt-get install clang cmake ninja-build pkg-config libgtk3-dev liblzma-dev libstdc++-12-dev && \
# flutter precache && \
# rm -rf /var/lib/apt/lists/*
RUN flutter precache && \
rm -rf /var/lib/apt/lists/*