Use start.sh script

This commit is contained in:
Jon Ervine 2021-03-02 22:44:37 +08:00
parent 91c07d61a7
commit e38f66a8ea
2 changed files with 7 additions and 3 deletions

View File

@ -7,9 +7,10 @@ ENV LANGUAGE en_US:en
ENV LC_ALL en_US.UTF-8
# Install runtime requirements
RUN dnf install -y python3 gcc python3-pip && \
/usr/bin/python3 -m venv extra-modules /var/lib/awx/my-venv/extra-modules
RUN dnf install -y python3 gcc python3-pip python3-devel
COPY start.sh /usr/local/bin/start.sh
VOLUME /var/lib/awx/my-venv
CMD [ "/var/lib/awx/my-venv/extra-modules/bin/pip3", "install", "-r", "/tmp/extra-modules/requirements/txt" ]
CMD [ "/bin/bash", "/usr/local/bin/start.sh" ]

3
start.sh Normal file
View File

@ -0,0 +1,3 @@
#!/bin/bash
/usr/bin/python3 -m venv extra-modules /var/lib/awx/my-venv/extra-modules
/var/lib/awx/my-venv/extra-modules/bin/pip3 install -r /tmp/extra-modules/requirements/txt