Update Container Image; does not successfully build anymore
danmanners opened this issue · 1 comments
danmanners commented
Creating this issue as a PR reference.
➜ memegen git:(main) podman build -t memegen-dev .
STEP 1/18: FROM docker.io/python:3.10.0-slim-bullseye
STEP 2/18: RUN mkdir -p /opt/memegen
--> c8eed8f177f
STEP 3/18: WORKDIR /opt/memegen
--> 61b3b57ca60
STEP 4/18: COPY templates /opt/memegen/templates
--> ceda5dbc5e4
STEP 5/18: COPY scripts /opt/memegen/scripts
--> 523f217a4a2
STEP 6/18: COPY fonts /opt/memegen/fonts
--> ac95caddb2a
STEP 7/18: COPY docs /opt/memegen/docs
--> 29e07da48c5
STEP 8/18: COPY bin /opt/memegen/bin
--> d8387f42992
STEP 9/18: COPY app /opt/memegen/app
--> 2f39e67e06b
STEP 10/18: COPY requirements.txt /opt/memegen
--> e3508d7804b
STEP 11/18: COPY pyproject.toml /opt/memegen/
--> 185627d0baf
STEP 12/18: COPY runtime.txt /opt/memegen/
--> 4422e4f1da2
STEP 13/18: COPY CHANGELOG.md /opt/memegen/CHANGELOG.md
--> 058837e2669
STEP 14/18: RUN pip install -U pip && pip install -r /opt/memegen/requirements.txt
Requirement already satisfied: pip in /usr/local/lib/python3.10/site-packages (21.2.4)
Collecting pip
Downloading pip-21.3.1-py3-none-any.whl (1.7 MB)
Installing collected packages: pip
Attempting uninstall: pip
Found existing installation: pip 21.2.4
Uninstalling pip-21.2.4:
ERROR: Could not install packages due to an OSError: [Errno 39] Directory not empty: 'webencodings'
Error: error building at STEP "RUN pip install -U pip && pip install -r /opt/memegen/requirements.txt": error while running runtime: exit status 1
Removing pip install -U pip &&
seems to fix this issue. I'll also be updating the CONTRIBUTING.md
file to include buildah
multi-arch container build instructions.
danmanners commented
Thanks @jacebrowning! I'll either re-open this or open a new issue if it breaks again. Definitely have plenty of optimizations I'd like to do with the image, but it's not remotely critical at this point 😃