Skip to content

Commit

Permalink
Add python libraries into docs-utils
Browse files Browse the repository at this point in the history
  • Loading branch information
lemmav committed Feb 29, 2024
1 parent 2b33011 commit d1af400
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -248,16 +248,18 @@ USER ds

ENTRYPOINT /var/www/onlyoffice/documentserver-example/docker-entrypoint.sh npm start

FROM alpine:latest AS utils
LABEL maintainer Ascensio System SIA <[email protected]>
RUN apk add bash postgresql-client mysql-client curl wget && \
FROM python:3.11 AS builder
RUN pip install redis psycopg2 PyMySQL pika python-qpid-proton func_timeout requests kubernetes
FROM python:3.11-slim AS utils
COPY --from=builder /usr/local/lib/python3.11/site-packages /usr/local/lib/python3.11/site-packages
RUN apt update && apt install -y postgresql-client default-mysql-client curl wget && \
curl -LO \
https://storage.googleapis.com/kubernetes-release/release/`curl \
-s https://storage.googleapis.com/kubernetes-release/release/stable.txt`/bin/linux/amd64/kubectl && \
chmod +x ./kubectl && \
mv ./kubectl /usr/local/bin/kubectl && \
addgroup --system --gid 101 ds && \
adduser --system -G ds -h /home/ds --shell /bin/bash --uid 101 ds && \
groupadd --system -g 1006 ds && \
useradd --system -g ds -d /home/ds -s /bin/bash -u 101 ds && \
mkdir /scripts && \
chown -R ds:ds /scripts
USER ds
Expand Down

0 comments on commit d1af400

Please sign in to comment.