* fix(chalice): fixes for SSO
* fix(chalice): changed base image
* fix(chalice): changed requirements
(cherry picked from commit c8775f3c15)
26 lines
738 B
Docker
26 lines
738 B
Docker
FROM python:3.12-alpine
|
|
LABEL Maintainer="KRAIEM Taha Yassine<tahayk2@gmail.com>"
|
|
RUN apk add --no-cache build-base libressl libffi-dev libressl-dev libxslt-dev libxml2-dev xmlsec-dev xmlsec tini
|
|
|
|
ARG envarg
|
|
ENV SOURCE_MAP_VERSION=0.7.4 \
|
|
APP_NAME=chalice \
|
|
LISTEN_PORT=8000 \
|
|
PRIVATE_ENDPOINTS=false \
|
|
ENTERPRISE_BUILD=${envarg} \
|
|
GIT_SHA=$GIT_SHA
|
|
|
|
WORKDIR /work
|
|
COPY requirements.txt ./requirements.txt
|
|
RUN pip install --no-cache-dir --upgrade -r requirements.txt
|
|
# This code is used to solve 'lxml & xmlsec libxml2 library version mismatch' error
|
|
RUN pip uninstall -y lxml && pip install lxml
|
|
|
|
COPY . .
|
|
RUN mv env.default .env
|
|
|
|
RUN adduser -u 1001 openreplay -D
|
|
USER 1001
|
|
|
|
ENTRYPOINT ["/sbin/tini", "--"]
|
|
CMD ./entrypoint.sh
|