Skip to content

Commit e0e035f

Browse files
committed
docker changes for flask-cognito-lib
1 parent 9aa601b commit e0e035f

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

servers/app.Dockerfile

+9
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,14 @@ RUN apt-get update && apt-get -y install qpdf poppler-utils && apt-get install -
44
COPY requirements.txt .
55
RUN pip3 install --upgrade pip
66
RUN pip3 install -r requirements.txt
7+
RUN mkdir /root/.ssh/
8+
# ---------------- Manual Setup Required ------------------ #
9+
# Must get Deploy Key and drop it into the server dir #
10+
COPY flask-cognito-lib_deploy /root/.ssh/flask-cognito-lib_deploy
11+
# --------------------------------------------------------- #
12+
RUN touch /root/.ssh/known_hosts
13+
RUN ssh-keyscan github.com >> /root/.ssh/known_hosts
14+
RUN git - C /root clone [email protected]:ShipSolver/flask-cognito-lib.git
15+
RUN pip3 install -e /root/flask-cognito-lib
716
WORKDIR /opt/metadata-extraction
817
ENV PYTHONPATH .

servers/celery.Dockerfile

+9
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,14 @@ RUN apt -y install tesseract-ocr && apt -y install libtesseract-dev
44
COPY requirements.txt .
55
RUN pip3 install --upgrade pip
66
RUN pip3 install -r requirements.txt
7+
RUN mkdir /root/.ssh/
8+
# ---------------- Manual Setup Required ------------------ #
9+
# Must get Deploy Key and drop it into the server dir #
10+
COPY flask-cognito-lib_deploy /root/.ssh/flask-cognito-lib_deploy
11+
# --------------------------------------------------------- #
12+
RUN touch /root/.ssh/known_hosts
13+
RUN ssh-keyscan github.com >> /root/.ssh/known_hosts
14+
RUN git - C /root clone [email protected]:ShipSolver/flask-cognito-lib.git
15+
RUN pip3 install -e /root/flask-cognito-lib
716
WORKDIR /opt/metadata-extraction/tenant
817
ENV PYTHONPATH ..

0 commit comments

Comments
 (0)