-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add python libraries into docs-utils
- Loading branch information
Showing
1 changed file
with
7 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|