services:
  web:
    build:
      dockerfile_inline: |
        FROM alpine:latest
        RUN apk add --no-cache git npm openssh-client
        RUN mkdir -p -m 0700 /root/.ssh && ssh-keyscan -t ed25519,rsa,ecdsa git.idspace.it > /root/.ssh/known_hosts
        CMD git clone git@git.idspace.it:ImpulsoDigitale/dokploy_custom_apps.git && cd dokploy_custom_apps && npx -y serve
    volumes:
      - "/root/.ssh/id_ed25519:/root/.ssh/id_ed25519:ro"
    expose:
      - "3000"