Skip to content

Commit

Permalink
add docker to project
Browse files Browse the repository at this point in the history
  • Loading branch information
ImMohammad20000 committed Oct 23, 2023
1 parent 682fcad commit 6b5d96d
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
17 changes: 17 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
FROM python:3.11.3-slim

ENV PYTHONUNBUFFERED 1

WORKDIR /bot

RUN apt-get update \
&& rm -rf /var/lib/apt/lists/*

RUN pip install --upgrade pip
COPY ./requirements.txt /bot/
RUN pip install --no-cache-dir --upgrade -r /bot/requirements.txt


COPY . /bot

CMD [ "python","main.py" ]
8 changes: 8 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
version: "3.3"
services:
marzban-backup:
build: .
container_name: marzban-backup-bot
env_file: .env
network_mode: host
restart: always

0 comments on commit 6b5d96d

Please sign in to comment.