diff --git a/Dockerfile b/Dockerfile index 88d4257..7578041 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,11 +1,18 @@ FROM python:3.12.5-slim-bullseye -RUN pip3 install gunicorn +RUN apt update -qq && \ + apt install --yes tini && \ + rm -rf /var/lib/apt/lists/* + +RUN python -m pip install gunicorn RUN mkdir /opt/frx-challenges +COPY requirements.txt /tmp/requirements.txt +RUN python -m pip install -r /tmp/requirements.txt + COPY . /opt/frx-challenges WORKDIR /opt/frx-challenges/frx_challenges -RUN pip3 install -r ../requirements.txt +ENTRYPOINT ["tini", "--"] diff --git a/helm-chart/templates/deployment.yaml b/helm-chart/templates/deployment.yaml index bf55b6f..081f93b 100644 --- a/helm-chart/templates/deployment.yaml +++ b/helm-chart/templates/deployment.yaml @@ -90,7 +90,7 @@ spec: - name: django image: {{ .Values.image.repository }}:{{ .Values.image.tag }} imagePullPolicy: {{ .Values.image.pullPolicy }} - command: + args: - gunicorn - --bind - 127.0.0.1:8000 @@ -124,7 +124,7 @@ spec: - name: evaluator image: {{ .Values.image.repository }}:{{ .Values.image.tag }} imagePullPolicy: {{ .Values.image.pullPolicy }} - command: + args: - python - manage.py - evaluator