Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Hiboo
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
Monitor
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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ACIDES
Hiboo
Commits
292da1d3
Commit
292da1d3
authored
3 years ago
by
kaiyou
Browse files
Options
Downloads
Patches
Plain Diff
Switch to Debian based images for Python cryptography
parent
4bfa51f0
No related branches found
Branches containing commit
No related tags found
Tags containing commit
Loading
Checking pipeline status
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Dockerfile
+13
-10
13 additions, 10 deletions
Dockerfile
with
13 additions
and
10 deletions
Dockerfile
+
13
−
10
View file @
292da1d3
FROM
python:3
-alpine
AS
python_build
FROM
python:3
AS
python_build
COPY
requirements-prod.txt /requirements.txt
RUN
ap
k add
--no-cache
build-base git
\
python3-dev openssl-dev libffi-dev xmlsec xmlsec-dev
\
postgresql-dev mariadb-connector-c
-dev
\
jpeg-dev zlib-dev freetype-dev lcms2-dev openjpeg
-dev
\
tiff-dev
\
&&
pip
install
-r
/requirements.txt
RUN
ap
t-get update
\
&&
apt-get
install
-y
--no-install-recommends
\
python3-dev libxmlsec1 libxmlsec1
-dev
\
libpq-dev libmariadb
-dev
\
&&
rm
-rf
/var/cache/apt
RUN
pip
install
-r
/requirements.txt
FROM
node:alpine
AS
assets_build
RUN
apk add
--no-cache
python make g++
...
...
@@ -14,9 +14,12 @@ RUN yarn install --pure-lockfile
COPY
assets /assets
RUN
/node_modules/.bin/webpack-cli
FROM
python:3-alpine
RUN
apk add
--no-cache
xmlsec postgresql-libs mariadb-connector-c
\
zlib freetype jpeg openjpeg tiff lcms2
\
FROM
python:3-slim
RUN
apt-get update
\
&&
apt-get
install
-y
--no-install-recommends
\
zlib1g libfreetype6 libjpeg62-turbo libopenjp2-7 libtiff5 liblcms2-2
\
libpq5 libmariadb3 libxmlsec1
\
&&
rm
-rf
/var/cache/apt
\
&&
mkdir
/app
WORKDIR
/app
...
...
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