En kubernetes cronjobb för att tömma redis stream
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
FROM python:3.8-slim |
|
|
|
RUN mkdir -p /usr/src/app |
|
WORKDIR /usr/src/app |
|
|
|
COPY requirements.txt /usr/src/app/ |
|
|
|
RUN pip3 install --no-cache-dir -r requirements.txt |
|
|
|
COPY . /usr/src/app |
|
|
|
EXPOSE 8080 |
|
|
|
RUN chmod +x /usr/src/app/entrypoint.sh |
|
|
|
ENTRYPOINT ["/usr/src/app/entrypoint.sh"] |