Skip to content

Commit

Permalink
Attempt to solve image not building arm64
Browse files Browse the repository at this point in the history
  • Loading branch information
raidensakura committed Dec 22, 2023
1 parent 7a8de1f commit 3360848
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
1 change: 0 additions & 1 deletion .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,5 @@ jobs:
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
# Use Github Cache BAckend
cache-from: type=gha
cache-to: type=gha,mode=max
10 changes: 7 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,22 @@ RUN apk update && apk add git \
# pillow dependencies
jpeg-dev zlib-dev && \
adduser -D -h /home/modmail -g 'Modmail' modmail

ENV PIP_DISABLE_PIP_VERSION_CHECK=1
USER modmail

WORKDIR /home/modmail

FROM base as poetry

RUN pip install -U poetry
COPY poetry.lock pyproject.toml /home/modmail/
RUN apk add build-base && \
pip install -U poetry
COPY --chown=modmail:modmail poetry.lock pyproject.toml /home/modmail/
RUN python -m poetry export -o requirements.txt

FROM base as deps

USER modmail

COPY --from=poetry /home/modmail/requirements.txt /home/modmail/

RUN pip install -r requirements.txt --user
Expand Down

0 comments on commit 3360848

Please sign in to comment.