mirror of
https://github.com/revanced/revanced-api.git
synced 2025-04-29 14:14:29 +02:00
![pre-commit-ci[bot]](/assets/img/avatar_default.png)
* ci: initial ci config * [pre-commit.ci] pre-commit autoupdate updates: - [github.com/pre-commit/pre-commit-hooks: v3.2.0 → v4.4.0](https://github.com/pre-commit/pre-commit-hooks/compare/v3.2.0...v4.4.0) - [github.com/iamthefij/docker-pre-commit: master → v3.0.1](https://github.com/iamthefij/docker-pre-commit/compare/master...v3.0.1) * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * ci: remove pretty-format-json hook * ci: fix devcontainer Dockerfile --------- Co-authored-by: Alexandre Teles <alexandre.teles@ufba.br> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
47 lines
1.2 KiB
Docker
47 lines
1.2 KiB
Docker
FROM mcr.microsoft.com/devcontainers/base:jammy
|
|
# FROM mcr.microsoft.com/devcontainers/base:jammy
|
|
|
|
ARG DEBIAN_FRONTEND=noninteractive
|
|
ARG USER=vscode
|
|
|
|
RUN DEBIAN_FRONTEND=noninteractive \
|
|
&& apt-get update \
|
|
&& apt-get install -y build-essential --no-install-recommends make \
|
|
ca-certificates \
|
|
git \
|
|
libssl-dev \
|
|
zlib1g-dev \
|
|
libbz2-dev \
|
|
libreadline-dev \
|
|
libsqlite3-dev \
|
|
wget \
|
|
curl \
|
|
llvm \
|
|
libncurses5-dev \
|
|
xz-utils \
|
|
tk-dev \
|
|
libxml2-dev \
|
|
libxmlsec1-dev \
|
|
libffi-dev \
|
|
liblzma-dev \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
# Python and poetry installation
|
|
USER $USER
|
|
ARG HOME="/home/$USER"
|
|
ARG PYTHON_VERSION=3.11
|
|
# ARG PYTHON_VERSION=3.10
|
|
|
|
ENV PYENV_ROOT="${HOME}/.pyenv"
|
|
ENV PATH="${PYENV_ROOT}/shims:${PYENV_ROOT}/bin:${HOME}/.local/bin:$PATH"
|
|
|
|
RUN echo "done 0" \
|
|
&& curl https://pyenv.run | bash \
|
|
&& echo "done 1" \
|
|
&& pyenv install ${PYTHON_VERSION} \
|
|
&& echo "done 2" \
|
|
&& pyenv global ${PYTHON_VERSION} \
|
|
&& echo "done 3" \
|
|
&& curl -sSL https://install.python-poetry.org | python3 - \
|
|
&& poetry config virtualenvs.in-project true
|