Skip to content

Commit cdfae01

Browse files
committed
trying new python versions
1 parent e354e94 commit cdfae01

File tree

3 files changed

+26
-15
lines changed

3 files changed

+26
-15
lines changed

bot/Dockerfile

Lines changed: 20 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,22 @@
1-
FROM arm32v7/python:3.9.15-slim-bullseye as base
2-
ENV PYTHONUNBUFFERED=1 PYTHONDONTWRITEBYTECODE=1
1+
FROM python:3.11-bullseye
2+
ENV PYTHONDONTWRITEBYTECODE=1 PYTHONUNBUFFERED=1
3+
WORKDIR /base
34
RUN apt-get update && apt-get -y install gcc
4-
COPY requirements.txt .
5-
RUN pip install --index-url=https://www.piwheels.org/simple --no-cache-dir -r requirements.txt
6-
7-
FROM arm32v7/python:3.9.15-slim-bullseye
8-
ENV PYTHONUNBUFFERED=1 PYTHONDONTWRITEBYTECODE=1
9-
COPY --from=base /usr/local/lib/python3.9/site-packages/ /usr/local/lib/python3.9/site-packages/
10-
COPY --from=base /usr/local/bin/ /usr/local/bin/
11-
WORKDIR /bot
12-
RUN apt-get update && apt-get install libatomic1 -y
135
COPY . .
14-
CMD ["python3", "main.py"]
6+
RUN pip install --no-cache-dir -r requirements.txt
7+
CMD ["python", "main.py"]
8+
9+
# FROM arm32v7/python:3.9.15-slim-bullseye as base
10+
# ENV PYTHONUNBUFFERED=1 PYTHONDONTWRITEBYTECODE=1
11+
# RUN apt-get update && apt-get -y install gcc
12+
# COPY requirements.txt .
13+
# RUN pip install --index-url=https://www.piwheels.org/simple --no-cache-dir -r requirements.txt
14+
15+
# FROM arm32v7/python:3.9.15-slim-bullseye
16+
# ENV PYTHONUNBUFFERED=1 PYTHONDONTWRITEBYTECODE=1
17+
# COPY --from=base /usr/local/lib/python3.9/site-packages/ /usr/local/lib/python3.9/site-packages/
18+
# COPY --from=base /usr/local/bin/ /usr/local/bin/
19+
# WORKDIR /bot
20+
# RUN apt-get update && apt-get install libatomic1 -y
21+
# COPY . .
22+
# CMD ["python3", "main.py"]

bot/requirements.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,6 @@ tinkoff-investments==0.2.0b54
22
python-dotenv==0.21.0
33
protobuf==3.20.2
44
aiogram==2.22.1
5+
aiohttp==3.8.2
6+
yarl==1.8.1
7+
frozenlist==1.3.1

trademan/Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
FROM arm32v7/python:3.9.15-slim-bullseye
1+
FROM python:3.12-bullseye
22
ENV PYTHONDONTWRITEBYTECODE=1 PYTHONUNBUFFERED=1
33
WORKDIR /base
4-
RUN apt-get update && apt-get -y install gcc
4+
# RUN apt-get update && apt-get -y install gcc
55
COPY . .
6-
RUN pip install -U -i https://www.piwheels.org/simple --no-cache-dir -r requirements.txt
6+
RUN pip install --no-cache-dir -r requirements.txt
77
CMD ["python", "manage.py", "runserver", "0.0.0.0:8000"]

0 commit comments

Comments
 (0)