Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Investigate: Issues moving Docker build to Alpine #10

Closed
soup-bowl opened this issue May 2, 2022 · 0 comments · Fixed by #33
Closed

Investigate: Issues moving Docker build to Alpine #10

soup-bowl opened this issue May 2, 2022 · 0 comments · Fixed by #33
Assignees
Labels
bug Something isn't working enhancement New feature or request

Comments

@soup-bowl
Copy link
Owner

To improve size-efficiency I attempted to migrate the Docker image to Alpine. This worked well for AMD64, but appears to have a strange issue on ARM64. In both local tests and on GH Actions, the build takes ^10 mins to finish on ARM64. Aware that this is via QEMU, but this still appears to be incredibly slow.

The Dockerfile is:

FROM python:3-alpine

WORKDIR /opt/app

COPY htw                htw
COPY assets             assets
COPY requirements.txt   requirements.txt

RUN apk add python3-dev libc-dev zlib-dev jpeg-dev freetype-dev gcc \
	libxml2-dev libxslt-dev

RUN pip install --no-cache-dir -r requirements.txt

ENTRYPOINT [ "python", "-m", "htw" ]

Testing this on genuine ARM hardware should hopefully reveal what the true nature of the issue is.

@soup-bowl soup-bowl added bug Something isn't working enhancement New feature or request labels May 2, 2022
@soup-bowl soup-bowl self-assigned this May 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant