Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
python-mysql-api
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ai3
tools
python-mysql-api
Commits
a3605ab4
Commit
a3605ab4
authored
5 years ago
by
ale
Browse files
Options
Downloads
Patches
Plain Diff
Add missing packages in final image
parent
d4429ef3
No related branches found
No related tags found
No related merge requests found
Pipeline
#5140
passed
5 years ago
Stage: docker_build
Stage: release
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
Dockerfile
+10
-4
10 additions, 4 deletions
Dockerfile
with
10 additions
and
4 deletions
Dockerfile
+
10
−
4
View file @
a3605ab4
...
@@ -2,17 +2,23 @@ FROM debian:buster AS build
...
@@ -2,17 +2,23 @@ FROM debian:buster AS build
RUN
apt-get
-q
update
&&
\
RUN
apt-get
-q
update
&&
\
env
DEBIAN_FRONTEND
=
noninteractive apt-get
-qy
install
--no-install-recommends
\
env
DEBIAN_FRONTEND
=
noninteractive apt-get
-qy
install
--no-install-recommends
\
python python-dev python-pip python-setuptools python-wheel git build-essential
python
3
python
3
-dev python
3
-pip python
3
-setuptools python
3
-wheel git build-essential
ADD
. /src
ADD
. /src
WORKDIR
/src
WORKDIR
/src
RUN
mkdir
-p
dist
;
pip wheel
-r
requirements.txt
-w
dist
RUN
mkdir
-p
dist
;
pip
3
wheel
-r
requirements.txt
-w
dist
RUN
python setup.py bdist_wheel
RUN
python
3
setup.py bdist_wheel
FROM
debian:buster
FROM
debian:buster
RUN
apt-get
-q
update
&&
\
env
DEBIAN_FRONTEND
=
noninteractive apt-get
-qy
install
--no-install-recommends
\
python3 python3-pip python3-setuptools python3-wheel
\
&&
apt-get clean
\
&&
rm
-fr
/var/lib/apt/lists/
*
COPY
--from=build /src/dist/*.whl /tmp/wheels/
COPY
--from=build /src/dist/*.whl /tmp/wheels/
RUN
cd
/tmp/wheels
&&
pip
install
*
.whl
&&
rm
-fr
/tmp/wheels
RUN
cd
/tmp/wheels
&&
pip
3
install
*
.whl
&&
rm
-fr
/tmp/wheels
ENTRYPOINT
["/usr/bin/python-mysql-api-server"]
ENTRYPOINT
["/usr/bin/python-mysql-api-server"]
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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