Skip to content

Commit

Permalink
making build
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrei Neagu committed Jul 2, 2024
1 parent e774136 commit 3e3a8a0
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -66,14 +66,15 @@ RUN curl -fsSL https://download.docker.com/linux/ubuntu/gpg | gpg --dearmor -o /


# Set-up necessary Env vars for PyEnv
ENV PYENV_ROOT="$HOME/.pyenv"
ENV PATH $PYENV_ROOT/shims:$PYENV_ROOT/bin:$PATH
ENV PYENV_ROOT="/root/.pyenv"
ENV PATH=$PYENV_ROOT/shims:$PYENV_ROOT/bin:$PATH
# Install pyenv
RUN set -ex && \
curl https://pyenv.run | bash && \
pyenv update && \
pyenv install ${PYTHON_VERSION} && \
pyenv global ${PYTHON_VERSION} && \
pyenv virtualenv ${PYTHON_VERSION} venv && \
pyenv global venv && \
pyenv rehash && \
python --version

Expand All @@ -83,7 +84,8 @@ RUN git clone -n ${REPO_NAME} ${CLONE_DIR} && \
git checkout -B ${BRANCH_NAME} ${COMMIT_SHA} && \
# install ooil and requirements
cd ${CLONE_DIR}/packages/service-integration && \
pip install --no-cache-dir -r requirements/prod.txt && \
pip install uv && \
uv pip sync requirements/prod.txt && \
pip install --no-cache-dir . && \
cd / && \
# remove source directory
Expand Down

0 comments on commit 3e3a8a0

Please sign in to comment.