gitscope
← marzneshin / v0.1.0 / Dockerfile
https://dev.kronoz.win/r/marzneshin.git
Dockerfile · Docker
Blame Raw
 1FROM python:3.10-slim
 2
 3ENV PYTHONUNBUFFERED 1
 4
 5WORKDIR /code
 6
 7RUN apt-get update \
 8    && apt-get install -y curl unzip gcc python3-dev \
 9    && rm -rf /var/lib/apt/lists/*
10
11RUN bash -c "$(curl -L https://github.com/Gozargah/Marzban-scripts/raw/master/install_latest_xray.sh)"
12
13COPY ./requirements.txt /code/
14RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
15
16COPY . /code
17
18RUN apt-get remove -y curl unzip gcc python3-dev
19
20RUN ln -s /code/marzban-cli.py /usr/bin/marzban-cli \
21    && chmod +x /usr/bin/marzban-cli \
22    && marzban-cli completion install --shell bash
23
24CMD ["bash", "-c", "alembic upgrade head; python main.py"]