Browse Source

Add offline patch into scripts

pull/1322/head
Johann Frei 3 years ago
parent
commit
7204236fe8
1 changed files with 13 additions and 0 deletions
  1. 13
      offline_deployment/offline_01_2-extract_Docker_images.sh

13
offline_deployment/offline_01_2-extract_Docker_images.sh

@ -18,6 +18,19 @@ RUN apk add -U --no-cache py3-requests \\\
\
FROM nginx|' ../nginx/Dockerfile
# Modify Dockerfile for app to add python3 and offline patch
# TODO: Remark: Not needed due to SPA frontend
#sed -i 's|COPY ./Pipfile\* /app/|COPY ./Pipfile\* /app/\
#COPY offline_deployment/offline_patcher.py /patch.py\
#RUN apt-get update \
# \&\& apt-get install -y --no-install-recommends \
# python3 python3-requests \
# \&\& apt-get clean \\\
# \&\& rm -rf /var/lib/apt/lists/\*\
# \&\& mkdir -p /app/server/static/offline \&\& python3 /patch.py /app/server /server/static/offline\
#\
#|' ../app/Dockerfile.prod
docker-compose -f ../docker-compose.prod.yml pull
docker-compose -f ../docker-compose.prod.yml build

Loading…
Cancel
Save