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
58454f89
Commit
58454f89
authored
4 months ago
by
Andri Joos
Browse files
Options
Downloads
Patches
Plain Diff
move flutter to /opt
parent
881befde
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#7502
passed with stage
Stage:
in 15 minutes and 13 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Dockerfile
+8
-4
8 additions, 4 deletions
Dockerfile
with
8 additions
and
4 deletions
Dockerfile
+
8
−
4
View file @
58454f89
ARG
IMAGE_SERVER="registry.420joos.dev"
ARG
FLUTTER_VERSION="3.24.5"
ARG
DEPENDENCY_DIR="/tmp/dependencies"
ARG
FLUTTER_DIR="opt/flutter"
FROM
ubuntu:24.04
AS
download
ARG
FLUTTER_URL
ARG
FLUTTER_VERSION
ARG
DEPENDENCY_DIR
ARG
FLUTTER_DIR="$DEPENDENCY_DIR/flutter"
ARG
FLUTTER_DIR
ARG
FLUTTER_DIR="$DEPENDENCY_DIR/${FLUTTER_DIR}"
ARG
FLUTTER_DOWNLOAD_FILE="flutter.tar.xz"
RUN
apt update
\
...
...
@@ -21,19 +23,21 @@ RUN mkdir -p ${FLUTTER_DIR} \
FROM
alpine:3.20.3
ARG
DEPENDENCY_DIR
ARG
FLUTTER_DIR
ARG
USER_UID="1000"
ARG
USER_GID=${USER_UID}
ARG
USERNAME="flutter"
ENV
FLUTTER_
HOME="/flutter
"
ENV
PATH=$PATH:$FLUTTER_
HOME
/bin
ENV
FLUTTER_
DIR="/${FLUTTER_DIR}
"
ENV
PATH=$
{
PATH
}
:$
{
FLUTTER_
DIR}
/bin
COPY
--from=download $DEPENDENCY_DIR /
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
}
&&
chown
-R
${
USERNAME
}
:
${
USERNAME
}
${
FLUTTER_
DIR
}
USER
${USERNAME}
WORKDIR
/home/${USERNAME}
...
...
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