certupdater/Dockerfile
Egor Matveev 8e193e2e87
All checks were successful
Deploy Dev / Build (pull_request) Successful in 23s
Deploy Dev / Push (pull_request) Successful in 15s
Deploy Dev / Deploy dev (pull_request) Successful in 7s
fix
2025-06-01 01:10:28 +03:00

15 lines
414 B
Docker

FROM docker:dind
ENV PYTHONUNBUFFERED=1
RUN apk add --update --no-cache python3 py3-pip && ln -sf python3 /usr/bin/python
RUN mkdir /code
WORKDIR /code
RUN python3 -m venv venv
RUN venv/bin/python3 -m ensurepip
RUN venv/bin/pip3 install --no-cache --upgrade pip setuptools
COPY requirements.txt requirements.txt
RUN venv/bin/pip3 install -r requirements.txt
COPY . .
ENTRYPOINT [ "venv/bin/python3", "main.py" ]