-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile.example
More file actions
27 lines (21 loc) · 942 Bytes
/
Dockerfile.example
File metadata and controls
27 lines (21 loc) · 942 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
FROM python:3.13-alpine
WORKDIR /app
# Copy in requirements files, if needed
# These could be for Ansible Galaxy, Poetry, or a requirements.txt file
COPY ./requirements.txt ./requirements.txt
COPY ./ansible-galaxy-requirements.yaml ./ansible-galaxy-requirements.yaml
# Install required system packages
RUN apk add --update --no-cache gcc libc-dev libffi-dev openssh
# Install the LSO python package, and additional requirements
RUN pip install orchestrator-lso=="3.0.0"
RUN pip install -r requirements.txt
# Install required Ansible Galaxy roles and collections
RUN ansible-galaxy install \
-r ansible-galaxy-requirements.yaml \
-p /app/gap/ansible
RUN ansible-galaxy collection install \
-r ansible-galaxy-requirements.yaml \
-p /app/gap/ansible
EXPOSE 8000
ENTRYPOINT []
CMD ["python", "-m", "uvicorn", "lso.app:app", "--host", "0.0.0.0", "--port", "8000"]