Deployment-script added.
This commit is contained in:
parent
3e086565a4
commit
271abf6b33
2 changed files with 24 additions and 1 deletions
|
|
@ -4,8 +4,10 @@ RUN apk --no-cache add sshpass openssh-client lftp; mkdir -p /opt/app
|
|||
WORKDIR /opt/app
|
||||
ADD requirements.txt /root/
|
||||
ADD Dockerfile /root/
|
||||
ADD bin/deploy.sh /usr/local/bin/deploy.sh
|
||||
|
||||
# ignore "Running pip as root" warning
|
||||
ENV PIP_ROOT_USER_ACTION=ignore
|
||||
|
||||
RUN pip install -r /root/requirements.txt && pip freeze && rm -Rf "$(pip cache dir)"
|
||||
RUN chmod 755 /usr/local/bin/deploy.sh && pip install -r /root/requirements.txt && pip freeze && rm -Rf "$(pip cache dir)"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue