Skip to content

Commit

Permalink
Обновлена платформа контейнера и пакеты зависимостей
Browse files Browse the repository at this point in the history
  • Loading branch information
mb0nd committed Jan 31, 2024
1 parent 20350c6 commit a871cc7
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#Separate build image
FROM python:3.11-alpine3.18 as compile-image
FROM python:3.12-alpine3.19 as compile-image
RUN apk add --update --no-cache gcc musl-dev g++
COPY requirements.txt .
RUN python -m venv /opt/venv
Expand All @@ -8,7 +8,7 @@ RUN pip install --no-cache-dir --upgrade pip && \
pip3 install --no-cache-dir -r requirements.txt

# Final image
FROM python:3.11-alpine3.18
FROM python:3.12-alpine3.19
RUN apk add -U --no-cache wireguard-tools iptables \
&& echo "net.ipv4.ip_forward=1" >> /etc/sysctl.conf
COPY --from=compile-image /opt/venv /opt/venv
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ services:
volumes:
- "pgdata:/var/lib/postgresql/data"
bot:
image: mb0nd/wg_admin_bot:latest
image: mb0nd/wg_admin_bot:3.12
container_name: wg_admin_bot
stop_signal: SIGINT
restart: "unless-stopped"
Expand Down
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Wireguard_admin_bot
> Используется aiogram 3.0.0
> Используется aiogram 3.3.0
### Бот предназначен для управления вашим wireguard сервером.
###### Сценарий работы с ботом:
- Пользователь отправляет команду ___/start___ боту.
Expand Down
10 changes: 5 additions & 5 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
aiogram==3.0.0
SQLAlchemy==2.0.20
asyncpg==0.28.0
alembic==1.10.2
pydantic-settings==2.0.3
aiogram==3.3.0
SQLAlchemy==2.0.25
asyncpg==0.29.0
alembic==1.13.1
pydantic-settings==2.1.0

0 comments on commit a871cc7

Please sign in to comment.