Skip to content

Commit

Permalink
Add the Redis library to the docservice container (#118)
Browse files Browse the repository at this point in the history
* Add the Redis library to the docservice container

* Add the version of the library to install
  • Loading branch information
VyacheslavSemin authored Jul 23, 2024
1 parent b26ee1a commit afb94fe
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ RUN yum install sudo -y && \
useradd --system -g ds --no-create-home --shell /sbin/nologin --uid 101 ds && \
rm -f /var/log/*log

FROM python:2.7 AS redis-lib
RUN pip install redis==3.5.3

FROM ds-base AS ds-service
ARG TARGETARCH
ARG PRODUCT_EDITION=
Expand Down Expand Up @@ -159,6 +162,12 @@ COPY --chown=ds:ds --from=ds-service \
COPY --from=ds-service \
/var/www/$COMPANY_NAME/documentserver/document-templates/new \
/var/www/$COMPANY_NAME/documentserver/document-templates/new
COPY --from=redis-lib \
/usr/local/lib/python2.7/site-packages/redis \
/usr/lib/python2.7/site-packages/redis
COPY --from=redis-lib \
/usr/local/lib/python2.7/site-packages/redis-3.5.3.dist-info \
/usr/lib/python2.7/site-packages/redis-3.5.3.dist-info
COPY docker-entrypoint.sh /usr/local/bin/
USER ds
ENTRYPOINT docker-entrypoint.sh /var/www/$COMPANY_NAME/documentserver/server/DocService/docservice
Expand Down

0 comments on commit afb94fe

Please sign in to comment.