Skip to content

Commit

Permalink
Temp fix for pyenv-update bug
Browse files Browse the repository at this point in the history
  • Loading branch information
mikicz committed Mar 4, 2018
1 parent bcec675 commit 9c33ab2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions arca/backend/docker.py
Original file line number Diff line number Diff line change
Expand Up @@ -236,8 +236,11 @@ def get_python_base(self, python_version, pull=True):
def get_dockerfile():
base_arca_name, base_arca_tag = self.get_arca_base(pull)

# FIXME: deleting the tags is a fix for https://github.com/pyenv/pyenv-update/pull/4, remove once its merged

return BytesIO(bytes(f"""
FROM {base_arca_name}:{base_arca_tag}
RUN cd /root/.pyenv && git tag -d $(git tag --list) && cd /
RUN pyenv update
RUN pyenv install {python_version}
ENV PYENV_VERSION {python_version}
Expand Down

0 comments on commit 9c33ab2

Please sign in to comment.