Error enabling dev mode

Hello all,

I have a new Space created, it is a blank docker with a bunch of ML tools installed.
I’ve run it without dev mode and everything installs and the space itself seems to run ok.

I’ve added the required packages as stated in the docs.

RUN apt-get install -y bash curl wget procps git git-lfs

But when I enable dev mode, it attempts to boot and runs into this error.

--> RUN git config --global user.email "xxx@users.noreply.huggingface.co"
error: could not lock config file //.gitconfig: Permission denied

--> ERROR: process "/bin/sh -c git config --global user.email \"xxx@users.noreply.huggingface.co\"" did not complete successfully: exit code: 255

any ideas? did i miss something? thanks in advance

hi @allanmercado ,

Are you using a Docker SDK? if so you need to follow the instructions here.%20It%20then%20starts%20a%20NodeJS%20application%20from%20/app.,-FROM%20node%3A) and perhaps use this Dockerfile as example

FROM node:19-slim

RUN RUN apt-get update && \
    apt-get install -y \
      bash \
      git git-lfs \
      wget curl procps \
      htop vim nano && \
    rm -rf /var/lib/apt/lists/*

WORKDIR /app
COPY --link --chown=1000 ./ /app
RUN  npm ci 

CMD ["node", "index.mjs"]