Skip to content
This repository has been archived by the owner on Jan 15, 2023. It is now read-only.

Fatal process OOM in Failed to reserve virtual memory for CodeRange (mhart/alpine-node:16) #160

Open
arman-mukatov opened this issue Sep 21, 2021 · 1 comment

Comments

@arman-mukatov
Copy link

arman-mukatov commented Sep 21, 2021

Getting an error while building. MacOS AppleSilicon

Fatal process OOM in Failed to reserve virtual memory for CodeRange
uncaught target signal 5 (Trace/breakpoint trap) - core dumped

FROM mhart/alpine-node:16
RUN apk update && \
  apk add --no-cache \
    sudo \
    g++ \
    gcc \
    git \
    libev-dev \
    libevent-dev \
    libuv-dev \
    make \
    openssl-dev \
    perl \
    python3
ARG uid=1000
ARG user=appuser
RUN set -x ; \
  addgroup -g $uid -S $user ; \
  adduser -u $uid -D -S -G $user $user \
  && exit 0 ; exit 1
RUN echo $user' ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers
RUN yarn global add node-gyp
RUN git clone --recursive https://github.com/sass/node-sass.git \
  && cd node-sass \
  && yarn \
  && node scripts/build -f
RUN mkdir /project
WORKDIR /project
COPY . .
RUN chown -Rh $user:$user /project
USER $user
RUN yarn`
```
@arman-mukatov arman-mukatov changed the title Fatal process OOM in Failed to reserve virtual memory for CodeRange Fatal process OOM in Failed to reserve virtual memory for CodeRange (mhart/alpine-node:16) Sep 21, 2021
@OmgImAlexis
Copy link

This is an issue with docker for mac not this repo docker/for-mac#5831

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants