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
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
Commits
6689df7d
Commit
6689df7d
authored
3 months ago
by
Mohammad Torkashvand
Browse files
Options
Downloads
Patches
Plain Diff
Add environment variables for Python logging and UTF-8 support in Alpine image
parent
a14fa02e
No related branches found
No related tags found
1 merge request
!331
Add environment variables for Python logging and UTF-8 support in Alpine image
Pipeline
#90995
passed
3 months ago
Stage: tox
Stage: documentation
Stage: sonarqube
Changes
1
Pipelines
3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Dockerfile
+8
-2
8 additions, 2 deletions
Dockerfile
with
8 additions
and
2 deletions
Dockerfile
+
8
−
2
View file @
6689df7d
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
...
...
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