Added support for arm64 builds
(cherry picked from commit aa688c5d937d9538068cdb73c4f9e4cf394c2c64)
This commit is contained in:
@@ -45,6 +45,7 @@ jobs:
|
|||||||
uses: docker/build-push-action@v4
|
uses: docker/build-push-action@v4
|
||||||
with:
|
with:
|
||||||
push: true
|
push: true
|
||||||
|
platforms: "linux/amd64,linux/arm64"
|
||||||
cache-from: |
|
cache-from: |
|
||||||
type=gha
|
type=gha
|
||||||
cache-to: |
|
cache-to: |
|
||||||
@@ -90,6 +91,7 @@ jobs:
|
|||||||
uses: docker/build-push-action@v4
|
uses: docker/build-push-action@v4
|
||||||
with:
|
with:
|
||||||
push: true
|
push: true
|
||||||
|
platforms: "linux/amd64,linux/arm64"
|
||||||
cache-from: |
|
cache-from: |
|
||||||
type=gha
|
type=gha
|
||||||
cache-to: |
|
cache-to: |
|
||||||
|
|||||||
+7
-4
@@ -1,6 +1,7 @@
|
|||||||
|
ARG FLUTTER_VERSION=3.10.6
|
||||||
# Stage 1 - Install dependencies and build the app
|
# Stage 1 - Install dependencies and build the app
|
||||||
# This matches the flutter version on our CI/CD pipeline on Github
|
# This matches the flutter version on our CI/CD pipeline on Github
|
||||||
FROM ghcr.io/cirruslabs/flutter:3.10.6 AS build-env
|
FROM --platform=amd64 ghcr.io/cirruslabs/flutter:${FLUTTER_VERSION} AS build-env
|
||||||
|
|
||||||
# Set directory to Copy App
|
# Set directory to Copy App
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
@@ -8,11 +9,13 @@ WORKDIR /app
|
|||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
# Precompile tmail flutter
|
# Precompile tmail flutter
|
||||||
RUN bash prebuild.sh && flutter build web --release
|
RUN bash prebuild.sh
|
||||||
|
# Build flutter for web
|
||||||
|
RUN flutter build web --release
|
||||||
|
|
||||||
# Stage 2 - Create the run-time image
|
# Stage 2 - Create the run-time image
|
||||||
FROM nginx:mainline
|
FROM nginx:alpine
|
||||||
RUN chmod -R 755 /usr/share/nginx/html && apt install -y gzip
|
RUN apk add gzip
|
||||||
COPY --from=build-env /app/server/nginx.conf /etc/nginx
|
COPY --from=build-env /app/server/nginx.conf /etc/nginx
|
||||||
COPY --from=build-env /app/build/web /usr/share/nginx/html
|
COPY --from=build-env /app/build/web /usr/share/nginx/html
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user