Skip to content

/bin/sh: 1: git: not found Starting the container for first time #879

@jlexposito

Description

@jlexposito

Describe the bug

I'm trying to deploy papra with the docker-compose file shown below, but I'm stuck with the error below:

docker-compose.yaml

services:
  papra:
    container_name: papra
    image: ghcr.io/papra-hq/papra:latest
    restart: unless-stopped
    ports:
      - "1221:1221"
    volumes:
      - /apps/papra:/app/app-data
    user: "${UID:-1000}:${GID:-1000}"
    env_file:
       - ../stack.env

stack.env content, where AUTH_SECRET is the result of openssl rand -hex 48 (I've inspected the container and it's properly set):

APP_BASE_URL=https://papra.REDACTED.COM
AUTH_SECRET=REDACTED

Error message:


> pnpm migrate:up:prod && pnpm start

> @papra/app-server@0.0.0 migrate:up:prod /app

> tsx src/scripts/migrate-up.script.ts

/bin/sh: 1: git: not found

/bin/sh: 1: git: not found

 ELIFECYCLE  Command failed with exit code 132.

 ELIFECYCLE  Command failed with exit code 132.```

### What happened?

I expected the service to do the initial setup and start, but it will constantly crash.

### System information

I'm using docker-compose using the latest image.

### Where did you encounter the bug?

Other (installations, docker, etc.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions