diff --git a/.github/workflows/build-docker.yml b/.github/workflows/build-docker.yml new file mode 100644 index 0000000..47e2426 --- /dev/null +++ b/.github/workflows/build-docker.yml @@ -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 \ No newline at end of file diff --git a/README.md b/README.md index 6a187b5..d49ea98 100644 --- a/README.md +++ b/README.md @@ -1 +1,3 @@ -# dockerfiles \ No newline at end of file +# dockerfiles + + \ No newline at end of file diff --git a/pyenv/Dockerfile b/pyenv/Dockerfile new file mode 100644 index 0000000..3df8477 --- /dev/null +++ b/pyenv/Dockerfile @@ -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 \ No newline at end of file