Штinit commit
This commit is contained in:
24
Dockerfile
Normal file
24
Dockerfile
Normal file
@@ -0,0 +1,24 @@
|
||||
FROM python:3.9-slim
|
||||
|
||||
# Устанавливаем зависимости
|
||||
RUN apt-get update && apt-get install -y \
|
||||
git \
|
||||
curl \
|
||||
docker.io \
|
||||
docker-compose \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
# Устанавливаем Ansible, Molecule и Ansible Vault
|
||||
RUN pip install --no-cache-dir ansible ansible-vault molecule docker molecule-docker
|
||||
|
||||
# Устанавливаем Docker CLI
|
||||
RUN curl -fsSL https://get.docker.com | sh
|
||||
|
||||
# Устанавливаем рабочую директорию
|
||||
WORKDIR /workspace
|
||||
|
||||
# Устанавливаем роль из Ansible Galaxy (пример: geerlingguy.nginx)
|
||||
#RUN ansible-galaxy role install geerlingguy.nginx
|
||||
|
||||
# Указываем команду по умолчанию
|
||||
CMD ["molecule", "--version"]
|
||||
Reference in New Issue
Block a user