-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
32 lines (24 loc) · 932 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
FROM node:slim
LABEL "com.github.actions.name"="Dart Conventional Release"
LABEL "com.github.actions.description"="Automating version bump for conventional dart releases"
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
# 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:${PATH}"
# Add Dart to PATH
ENV PATH="/usr/local/flutter/bin/cache/dart-sdk/bin:${PATH}"
# Install npm dependencies
COPY package*.json ./
RUN npm install
# Precache Flutter
RUN flutter precache
# Copy the rest of your action's code
COPY . .
# Run `node /index.js`
ENTRYPOINT ["node", "/index.js"]