FROM node:20-alpine

RUN apk add --no-cache \
    dumb-init \
    git \
    bash \
    postgresql-client \
    wget \
    python3 \
    make \
    g++

USER node
WORKDIR /workspace
ENV LANG=C.UTF-8
ENV LC_ALL=C.UTF-8

ENV PATH="/workspace/node_modules/.bin:${PATH}"
ENTRYPOINT ["dumb-init", "--"]
