feat: updated dependency management

This commit is contained in:
Marvin Zhang
2024-12-17 19:32:16 +08:00
parent c945e093d5
commit e77d4cdd31
6 changed files with 88 additions and 59 deletions

View File

@@ -1,4 +1,4 @@
FROM ubuntu:22.04
FROM ubuntu:24.04
# Non-interactive mode
ENV DEBIAN_FRONTEND=noninteractive

View File

@@ -1,5 +1,8 @@
#!/bin/bash
# Fail on error
set -e
# Ensure directory mode of /tmp is world-writable (readable, writable, executable by all users)
# This is important for temporary file operations in containerized environments
chmod 777 /tmp
@@ -21,4 +24,7 @@ apt-get install -y \
nginx \
unzip \
gnupg2 \
libc6
libc6
# Add source /etc/profile to ~/.bashrc
echo "source /etc/profile" >> ~/.bashrc

View File

@@ -1,6 +1,16 @@
#!/bin/bash
version="3.12"
# Fail on error
set -e
# Get version from first argument
version="${1}"
# Check if version is provided
if [ -z "$version" ]; then
echo "Please provide a version number"
exit 1
fi
# Install build dependencies
apt-get install -y \
@@ -64,6 +74,7 @@ pip install -r /app/install/python/requirements.txt
# Create symbolic links
ln -sf $(pyenv which python) /usr/local/bin/python
ln -sf $(pyenv which python3) /usr/local/bin/python3
ln -sf $(pyenv which pip) /usr/local/bin/pip
# After pip install