add pyenv and auto builder
This commit is contained in:
parent
770c08c653
commit
658f1e3d30
3 changed files with 42 additions and 1 deletions
27
.github/workflows/build-docker.yml
vendored
Normal file
27
.github/workflows/build-docker.yml
vendored
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
on:
|
||||
push:
|
||||
workflow_dispatch:
|
||||
|
||||
|
||||
jobs:
|
||||
build:
|
||||
strategy:
|
||||
matrix:
|
||||
image: [pyenv]
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Login to DockerHub
|
||||
uses: docker/login-action@v2
|
||||
with:
|
||||
username: ${{ secrets.DOCKER_USERNAME }}
|
||||
password: ${{ secrets.DOCKER_TOKEN }}
|
||||
|
||||
- name: Build and push
|
||||
uses: docker/build-push-action@v4
|
||||
with:
|
||||
file: ${{ matrix.image }}/Dockerfile
|
||||
push: true
|
||||
tags: osbm/${{ matrix.image }}:latest
|
||||
|
|
@ -1 +1,3 @@
|
|||
# dockerfiles
|
||||
|
||||
<!-- COMPOSE_PARALLEL_LIMIT=1 docker compose push -->
|
||||
12
pyenv/Dockerfile
Normal file
12
pyenv/Dockerfile
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
FROM ubuntu:22.04
|
||||
ENV DEBIAN_FRONTEND noninteractive
|
||||
|
||||
RUN apt-get update
|
||||
RUN apt-get install -y --no-install-recommends git make curl ca-certificates build-essential libbz2-dev libffi-dev liblzma-dev libncursesw5-dev libreadline-dev libsqlite3-dev libssl-dev libxml2-dev libxmlsec1-dev llvm make tk-dev wget xz-utils zlib1g-dev
|
||||
RUN rm -rf /var/lib/apt/lists/*
|
||||
|
||||
# Set-up necessary Env vars for PyEnv
|
||||
ENV PYENV_ROOT /root/.pyenv
|
||||
ENV PATH $PYENV_ROOT/shims:$PYENV_ROOT/bin:$PATH
|
||||
|
||||
RUN curl https://pyenv.run | bash
|
||||
Loading…
Add table
Add a link
Reference in a new issue