Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
GÉANT Service Orchestrator
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Jira
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
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
GÉANT Orchestration and Automation Team
GAP
GÉANT Service Orchestrator
Merge requests
!331
Add environment variables for Python logging and UTF-8 support in Alpine image
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Add environment variables for Python logging and UTF-8 support in Alpine image
improve-dockerfile
into
develop
Overview
0
Commits
1
Pipelines
1
Changes
1
Merged
Mohammad Torkashvand
requested to merge
improve-dockerfile
into
develop
4 months ago
Overview
0
Commits
1
Pipelines
1
Changes
1
Expand
0
0
Merge request reports
Compare
develop
develop (base)
and
latest version
latest version
6689df7d
1 commit,
4 months ago
1 file
+
8
−
2
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Dockerfile
+
8
−
2
Options
FROM
python:3.12.7-alpine
WORKDIR
/app
# Set environment variables for predictable Python behavior and UTF-8 encoding
ENV
PYTHONUNBUFFERED=1 \
PYTHONDONTWRITEBYTECODE=1 \
LANG=C.UTF-8 \
LC_ALL=C.UTF-8
ARG
ARTIFACT_VERSION
RUN
apk add
--no-cache
gcc libc-dev libffi-dev curl vim
&&
\
addgroup
-S
appgroup
&&
adduser
-S
appuser
-G
appgroup
-h
/app
RUN
pip
install
\
RUN
pip
install
--no-cache-dir
\
--pre
\
--trusted-host
150.254.211.2
\
--extra-index-url
https://150.254.211.2/artifactory/api/pypi/geant-swd-pypi/simple
\
@@ -19,7 +25,7 @@ ENV TRANSLATIONS_DIR=/app/gso/translations/
# Copy the shell scripts and ensure scripts do not have Windows line endings and make them executable
COPY
start-app.sh start-worker.sh start-scheduler.sh /app/
RUN
sed
-i
's/\r$//'
start-app.sh start-worker.sh start-scheduler.sh
&&
\
chmod
755
start-app.sh start-worker.sh start-scheduler.sh
chmod
+x
start-app.sh start-worker.sh start-scheduler.sh
RUN
chown
-R
appuser:appgroup /app
USER
appuser
Loading