Skip to content

Commit

Permalink
fix: Dockerfile with flutter & dart as well
Browse files Browse the repository at this point in the history
  • Loading branch information
vanlooverenkoen committed Nov 27, 2023
1 parent 90e343a commit 0065dbc
Showing 1 changed file with 16 additions and 4 deletions.
20 changes: 16 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,26 @@ LABEL "com.github.actions.description"="Automating version bump for conventional
LABEL "com.github.actions.icon"="upload-cloud"
LABEL "com.github.actions.color"="blue"

# Install system dependencies for Git, Curl, and Unzip
RUN apt-get update && apt-get install -y git curl unzip xz-utils

# Copy the package.json and package-lock.json
COPY package*.json ./
RUN npm install -g npm@latest
RUN npm install

# Install dependencies
RUN apt-get update
RUN apt-get -y install git
# Install Dart and Flutter
# Set the Flutter version you want to use
ENV FLUTTER_VERSION=stable
RUN git clone --branch $FLUTTER_VERSION https://github.com/flutter/flutter.git /usr/local/flutter

# Add Flutter to PATH
ENV PATH="/usr/local/flutter/bin:/usr/local/flutter/bin/cache/dart-sdk/bin:${PATH}"

# Pre-download development binaries and libraries
RUN flutter precache

# Run basic check to download Dark SDK
RUN flutter doctor

# Copy the rest of your action's code
COPY . .
Expand Down

0 comments on commit 0065dbc

Please sign in to comment.