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