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
cbfffc86
Commit
cbfffc86
authored
5 months ago
by
Andri Joos
Browse files
Options
Downloads
Patches
Plain Diff
add flutter user
parent
1ad036c8
Loading
Loading
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Dockerfile
+10
-1
10 additions, 1 deletion
Dockerfile
with
10 additions
and
1 deletion
Dockerfile
+
10
−
1
View file @
cbfffc86
...
@@ -26,6 +26,9 @@ RUN wget "$GLIBC_URL/glibc-2.35-r1.apk" --directory-prefix $TMP_DEPENDENCIES_DIR
...
@@ -26,6 +26,9 @@ RUN wget "$GLIBC_URL/glibc-2.35-r1.apk" --directory-prefix $TMP_DEPENDENCIES_DIR
FROM
alpine:3.20
FROM
alpine:3.20
ARG
DEPENDENCY_DIR
ARG
DEPENDENCY_DIR
ARG
USER_UID="1000"
ARG
USER_GID=${USER_UID}
ARG
USERNAME="flutter"
ENV
FLUTTER_HOME="/flutter"
ENV
FLUTTER_HOME="/flutter"
ENV
PATH=$PATH:$FLUTTER_HOME/bin
ENV
PATH=$PATH:$FLUTTER_HOME/bin
...
@@ -35,5 +38,11 @@ COPY --from=download $DEPENDENCY_DIR /
...
@@ -35,5 +38,11 @@ COPY --from=download $DEPENDENCY_DIR /
RUN
wget
-q
-O
/etc/apk/keys/sgerrand.rsa.pub https://alpine-pkgs.sgerrand.com/sgerrand.rsa.pub
\
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
\
&&
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/
*
\
&&
rm
-r
/tmp/
*
\
&&
dart
--disable-analytics
&&
flutter config
--no-analytics
\
&&
addgroup
${
USERNAME
}
-g
${
USER_GID
}
\
&&
adduser
${
USERNAME
}
--uid
${
USER_UID
}
--ingroup
${
USERNAME
}
--disabled-password
\
&&
chown
-R
${
USERNAME
}
:
${
USERNAME
}
${
FLUTTER_HOME
}
USER
${USERNAME}
RUN
dart
--disable-analytics
&&
flutter config
--no-analytics
\
&&
flutter precache
--universal
&&
flutter precache
--universal
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