Skip to content

Commit

Permalink
Merge pull request #175 from 2i2c-org/tini
Browse files Browse the repository at this point in the history
Use tini as entrypoint in the docker image
  • Loading branch information
yuvipanda authored Oct 29, 2024
2 parents b119a78 + 2407618 commit e9699da
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
11 changes: 9 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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", "--"]
4 changes: 2 additions & 2 deletions helm-chart/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -124,7 +124,7 @@ spec:
- name: evaluator
image: {{ .Values.image.repository }}:{{ .Values.image.tag }}
imagePullPolicy: {{ .Values.image.pullPolicy }}
command:
args:
- python
- manage.py
- evaluator
Expand Down

0 comments on commit e9699da

Please sign in to comment.