If you're getting this kind of error when running Node.js programs with binary dependencies that don't support M1 yet, e.g.:
$ yarn test
dyld[51175]: missing symbol called
dyld[51176]: missing symbol called| # syntax=docker/dockerfile:1 | |
| FROM python:3.8-slim-buster | |
| WORKDIR /app | |
| ENV ACCEPT_EULA=Y | |
| RUN apt-get update -y && apt-get update \ | |
| && apt-get install -y --no-install-recommends curl gcc g++ gnupg unixodbc-dev |
| export GRPC_PYTHON_BUILD_SYSTEM_OPENSSL=1 | |
| export GRPC_PYTHON_BUILD_SYSTEM_ZLIB=1 | |
| pip install grpcio |
| #cloud-config | |
| package_update: true | |
| package_upgrade: true | |
| password: root | |
| chpasswd: | |
| expire: false | |
| users: | |
| - name: ubuntu |