Newer
Older
FROM python:3.12.7-alpine

Mohammad Torkashvand
committed
# 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
RUN apk add --no-cache gcc libc-dev libffi-dev curl vim && \
addgroup -S appgroup && adduser -S appuser -G appgroup -h /app

Mohammad Torkashvand
committed
RUN pip install --no-cache-dir \
--trusted-host 150.254.211.2 \
--extra-index-url https://150.254.211.2/artifactory/api/pypi/geant-swd-pypi/simple \
geant-service-orchestrator==${ARTIFACT_VERSION}
# Set the environment variable for the translations directory
# 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 && \

Mohammad Torkashvand
committed
chmod +x start-app.sh start-worker.sh start-scheduler.sh
Karel van Klink
committed
RUN chown -R appuser:appgroup /app