openreplay/ee/api/Dockerfile
Kraiem Taha Yassine 0518619392
Api v1.13.0 (#1319)
* fix(chalice): changed base image

* fix(chalice): fixed health check
2023-06-08 17:54:44 +02:00

26 lines
769 B
Docker

#FROM python:3.11-alpine #revert to this image when this issue is fixed https://github.com/xmlsec/python-xmlsec/issues/252
FROM python:3.11-slim
LABEL Maintainer="KRAIEM Taha Yassine<tahayk2@gmail.com>"
RUN apt-get update && apt-get install -y pkg-config libxmlsec1-dev gcc tini && rm -rf /var/lib/apt/lists/*
ARG envarg
ENV SOURCE_MAP_VERSION=0.7.4 \
APP_NAME=chalice \
LISTEN_PORT=8000 \
PRIVATE_ENDPOINTS=false \
ENTERPRISE_BUILD=${envarg}
WORKDIR /work
COPY requirements.txt ./requirements.txt
RUN pip install --no-cache-dir --upgrade -r requirements.txt
COPY . .
RUN mv env.default .env
RUN #adduser -u 1001 openreplay -D
RUN useradd -mu 1001 openreplay
USER 1001
#ENTRYPOINT ["/sbin/tini", "--"]
ENTRYPOINT ["tini", "--"]
CMD ./entrypoint.sh