Skip to content

Commit

Permalink
Update Dockerfile to be able to run on M1 Mac (m-bain#21)
Browse files Browse the repository at this point in the history
* Update Dockerfile to be able to run on M1 Mac

* refactor: Add comments

---------

Co-authored-by: 陳鈞 <jim60105@gmail.com>
  • Loading branch information
epsilonhalbe and jim60105 committed Nov 23, 2023
1 parent 9715f0c commit 225b499
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,11 @@ COPY --link --from=dependencies /venv /venv
ARG PATH="/venv/bin:$PATH"
ENV PATH=${PATH}

# Missing dependencies for arm64
RUN if [ "$TARGETPLATFORM" = "linux/arm64" ]; then \
apt-get install -y --no-install-recommends libgomp1 libsndfile1; \
fi

# Non-root user
RUN useradd -m -s /bin/bash appuser
USER appuser
Expand Down

0 comments on commit 225b499

Please sign in to comment.