Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
Textgrid Repository WebDAV Server
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
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
DARIAH-DE
TextGridRep
Textgrid Repository WebDAV Server
Commits
b02db106
Commit
b02db106
authored
3 years ago
by
Stefan Hynek
Browse files
Options
Downloads
Plain Diff
Merge branch '25-move-py-icu-lib-build-to-docker-build-stage' into 'main'
Resolve "move py icu lib build to docker build stage" Closes
#25
See merge request
!16
parents
f3ff6435
09e5fd1d
No related branches found
No related tags found
1 merge request
!16
Resolve "move py icu lib build to docker build stage"
Pipeline
#278392
passed
3 years ago
Stage: release
Stage: build
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Dockerfile
+14
-3
14 additions, 3 deletions
Dockerfile
with
14 additions
and
3 deletions
Dockerfile
+
14
−
3
View file @
b02db106
...
...
@@ -3,6 +3,14 @@
# SPDX-License-Identifier: CC0-1.0
# syntax=docker/dockerfile:1
FROM
python:3.8-alpine
as
builder
# build icu lib
# hadolint ignore=DL3018
RUN
apk add
--no-cache
g++ icu-dev
\
&&
pip
install
--no-cache-dir
PyICU
==
2.8.1
FROM
python:3.8-alpine
LABEL
\
...
...
@@ -15,11 +23,14 @@ LABEL \
org.label-schema.vcs-url="https://gitlab.gwdg.de/dariah-de/textgridrep/repdav" \
org.label-schema.vendor="SUB/FE"
# copy pre-compiled icu lib from builder stage
COPY
--from=builder /usr/local/lib/python3.8/site-packages/icu /usr/local/lib/python3.8/site-packages/icu
COPY
--from=builder /usr/local/lib/python3.8/site-packages/PyICU-2.8.1.dist-info /usr/local/lib/python3.8/site-packages/PyICU-2.8.1.dist-info
# icu-dev package is nevertheless needed by the python library
# hadolint ignore=DL3018
RUN
adduser
-D
repdav
\
&&
apk add
--no-cache
\
# currently needed by icu library; needs to be replaced somehow...
g++ icu-dev
&&
apk add
--no-cache
icu-dev
USER
repdav
...
...
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