Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
F
flutter-base
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
docker images
flutter
flutter-base
Commits
08e60262
Commit
08e60262
authored
4 months ago
by
Andri Joos
Browse files
Options
Downloads
Patches
Plain Diff
use gcompat instead of glibc
parent
cbfffc86
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Dockerfile
+1
-8
1 addition, 8 deletions
Dockerfile
with
1 addition
and
8 deletions
Dockerfile
+
1
−
8
View file @
08e60262
...
...
@@ -8,8 +8,6 @@ ARG FLUTTER_URL
ARG
FLUTTER_VERSION
ARG
DEPENDENCY_DIR
ARG
FLUTTER_DIR="$DEPENDENCY_DIR/flutter"
ARG
TMP_DEPENDENCIES_DIR="$DEPENDENCY_DIR/tmp"
ARG
GLIBC_URL="https://github.com/sgerrand/alpine-pkg-glibc/releases/download/2.35-r1"
ARG
FLUTTER_DOWNLOAD_FILE="flutter.tar.xz"
RUN
apt update
\
...
...
@@ -19,9 +17,6 @@ RUN mkdir -p ${FLUTTER_DIR} \
&&
wget https://storage.googleapis.com/flutter_infra_release/releases/stable/linux/flutter_linux_
${
FLUTTER_VERSION
}
-stable
.tar.xz
-O
${
FLUTTER_DOWNLOAD_FILE
}
\
&&
tar
-xf
${
FLUTTER_DOWNLOAD_FILE
}
--strip-components
=
1
--directory
$FLUTTER_DIR
RUN
wget
"
$GLIBC_URL
/glibc-2.35-r1.apk"
--directory-prefix
$TMP_DEPENDENCIES_DIR
\
&&
wget
"
$GLIBC_URL
/glibc-bin-2.35-r1.apk"
--directory-prefix
$TMP_DEPENDENCIES_DIR
FROM
alpine:3.20
...
...
@@ -35,9 +30,7 @@ ENV PATH=$PATH:$FLUTTER_HOME/bin
COPY
--from=download $DEPENDENCY_DIR /
RUN
wget
-q
-O
/etc/apk/keys/sgerrand.rsa.pub https://alpine-pkgs.sgerrand.com/sgerrand.rsa.pub
\
&&
apk add
--no-cache
--force-overwrite
curl bash git tmp/glibc-2.35-r1.apk tmp/glibc-bin-2.35-r1.apk
\
&&
rm
-r
/tmp/
*
\
RUN
apk add
--no-cache
bash git gcompat
\
&&
addgroup
${
USERNAME
}
-g
${
USER_GID
}
\
&&
adduser
${
USERNAME
}
--uid
${
USER_UID
}
--ingroup
${
USERNAME
}
--disabled-password
\
&&
chown
-R
${
USERNAME
}
:
${
USERNAME
}
${
FLUTTER_HOME
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment