update for hwang
This commit is contained in:
1 parent
e2742f2169
commit
feda78c1d3
18 files changed
+261
-1827
No files matched your search
@@ -15,7 +15,7 @@ RUN apt-get update && \
|
||||
curl wget git tar gnupg2 lsb-release lz4 zstd vim \
|
||||
build-essential zlib1g-dev libncurses5-dev libgdbm-dev \
|
||||
libnss3-dev libssl-dev libreadline-dev libffi-dev libsqlite3-dev \
|
||||
python3-dev libmysqlclient-dev pkg-config ca-certificates
|
||||
python3-dev pkg-config ca-certificates
|
||||
|
||||
# ========================================
|
||||
# 2. Python 3.13 build & install
|
||||
@@ -47,28 +47,11 @@ RUN rm -f /usr/bin/python /usr/bin/python3 && \
|
||||
RUN pip install --upgrade pip && \
|
||||
pip install wheel && \
|
||||
pip install sqlalchemy alembic pydantic && \
|
||||
pip install psycopg2-binary asyncpg && \
|
||||
pip install mysqlclient asyncmy && \
|
||||
pip install gunicorn uvicorn[standard] && \
|
||||
pip install fastapi uv poetry
|
||||
|
||||
# ========================================
|
||||
# 5. Percona XtraBackup (mysql backup)
|
||||
# ========================================
|
||||
RUN curl -O https://repo.percona.com/apt/percona-release_latest.generic_all.deb && \
|
||||
apt-get install -y ./percona-release_latest.generic_all.deb && \
|
||||
rm -f percona-release_latest.generic_all.deb && \
|
||||
apt-get update && \
|
||||
percona-release enable pxb-84-lts && \
|
||||
apt-get install -y percona-xtrabackup-84
|
||||
|
||||
# ========================================
|
||||
# 6. PostgreSQL backup (pgbackrest)
|
||||
# ========================================
|
||||
RUN apt-get install -y pgbackrest
|
||||
|
||||
# ========================================
|
||||
# 7. Cleanup
|
||||
# 5. Cleanup
|
||||
# ========================================
|
||||
RUN apt-get clean && \
|
||||
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* && \
|
||||
|
||||
Reference in new issue
Block a user