-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
28 lines (22 loc) · 889 Bytes
/
Copy pathDockerfile
File metadata and controls
28 lines (22 loc) · 889 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
FROM python:3.14.7-alpine3.24@sha256:3f818d6811ff5f3f2b5e5d836df3d25c2dd2e588d3b4981338a8ba17e422f74f
# Install SSH client and build dependencies needed for compiling Python packages
RUN apk add --no-cache \
openssh-client \
&& apk add --no-cache --virtual .build-deps \
build-base \
libffi-dev \
openssl-dev \
musl-dev \
git
# Copy requirements and install them first to leverage Docker cache
COPY requirements.txt /code/requirements.txt
RUN pip install --no-cache-dir -r /code/requirements.txt openstackclient
# Copy requirements.yml and install Ansible roles
COPY requirements.yml /code/requirements.yml
COPY ansible.cfg /etc/ansible/
RUN ansible-galaxy install -r /code/requirements.yml
# Copy the entire project
COPY . /code
# Set PYTHONPATH to include the project root
ENV PYTHONPATH=/code
WORKDIR /code/simple_vm_client