Unable to use jetbrains gateway in coder

Hey! I'm encountering an error with one of my two templates. For both, the main.tf is the basic one. And here are the dockerfile :
Template nodejs (gateway works) :
FROM ubuntu

RUN apt-get update \
        && apt-get install -y \
        curl \
        git \
        gnupg2 \
        gnupg-agent \
        golang \
        sudo \
        vim \
        wget \
        && rm -rf /var/lib/apt/lists/*

ARG USER=coder
RUN useradd --groups sudo --no-create-home --shell /bin/bash ${USER} \
        && echo "${USER} ALL=(ALL) NOPASSWD:ALL" >/etc/sudoers.d/${USER} \
        && chmod 0440 /etc/sudoers.d/${USER}
USER ${USER}
WORKDIR /home/${USER}

RUN curl https://get.volta.sh | bash
RUN /home/${USER}/.volta/bin/volta install node
RUN /home/${USER}/.volta/bin/volta install pnpm

Template nodejs + php (gateway not working) :
# From Debian 12 slim
FROM php:8.1.27

RUN apt-get update \
        && apt-get install -y \
        curl \
        git \
        gnupg2 \
        gnupg-agent \
        golang \
        sudo \
        vim \
        wget \
        libpng-dev \
        zlib1g-dev \
        libxml2-dev \
        libzip-dev \
        libonig-dev \
        graphviz \
        zip \
        unzip \
        && rm -rf /var/lib/apt/lists/*

# Installez les extensions PHP
RUN docker-php-ext-install pdo_mysql mbstring exif pcntl bcmath gd zip opcache

# Installez Composer
COPY --from=composer:latest /usr/bin/composer /usr/bin/composer

ARG USER=coder
RUN useradd --groups sudo --no-create-home --shell /bin/bash ${USER} \
        && echo "${USER} ALL=(ALL) NOPASSWD:ALL" >/etc/sudoers.d/${USER} \
        && chmod 0440 /etc/sudoers.d/${USER}
USER ${USER}
WORKDIR /home/${USER}

RUN curl https://get.volta.sh | bash
RUN /home/${USER}/.volta/bin/volta install node
RUN /home/${USER}/.volta/bin/volta install pnpm
Was this page helpful?