fix: Dockerfile to reduce vulnerabilities #1122
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
name: Install On Ubuntu | |
on: [push] | |
jobs: | |
build: | |
runs-on: ${{matrix.os}} | |
strategy: | |
matrix: | |
os: [ubuntu-latest] #,windows-latest | |
python-version: [3.7, 3.8, 3.9] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python ${{matrix.python-version}} | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{matrix.python-version}} | |
# Optional - x64 or x86 architecture, defaults to x64 | |
architecture: 'x64' | |
# You can test your matrix by printing the current Python version | |
- name: Display Python version | |
run: python -c "import sys; print(sys.version)" | |
- name: Create Workspace Folder | |
run: mkdir -p wrdir | |
- name: Copy Files & folders to Workspace Folder | |
run: cp -r ./hiphp ./wrdir && cp -r ./install ./wrdir && cp -r ./hiphp-desktop ./wrdir && cp -r ./hiphp-tk ./wrdir && cp -r ./requirements.txt ./wrdir | |
- name: pip Upgrade | |
run: python -m pip install --upgrade pip | |
- name: Install requirements | |
run: pip install -r requirements.txt | |
- name: Install & Run | |
run: cd wrdir/install/ && bash install.sh --install |