20 lines
381 B
Docker
20 lines
381 B
Docker
# CLONE
|
|
FROM alpine:3.22 AS cloner
|
|
|
|
RUN apk add --no-cache git; \
|
|
git clone --depth=1 https://github.com/Ground-Zerro/DomainMapper.git
|
|
|
|
# RUN
|
|
FROM python:3.12-alpine
|
|
|
|
COPY --from=cloner /DomainMapper /usr/src/app
|
|
|
|
WORKDIR /usr/src/app
|
|
|
|
COPY files/config.ini config.ini
|
|
COPY files/main.py main.py
|
|
|
|
RUN pip install --no-cache-dir -r requirements.txt
|
|
|
|
CMD ["python", "./main.py"]
|