Update Dockerfile-tgbot

This commit is contained in:
kiriharu 2021-06-03 00:06:52 +03:00 committed by GitHub
parent 8a45f26d2e
commit 582351c434
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,12 +1,10 @@
FROM python:3.8.3-alpine FROM python:3.9.4-slim-buster
WORKDIR /usr/src/app WORKDIR /usr/src/app
ENV PYTHONDONTWRITEBYTECODE 1 ENV PYTHONDONTWRITEBYTECODE 1
ENV PYTHONUNBUFFERED 1 ENV PYTHONUNBUFFERED 1
RUN apk update \ RUN apt update && apt install gcc -y
&& apk add gcc python3-dev musl-dev libffi-dev openssl-dev make cargo
COPY . . COPY . .
WORKDIR tgbot WORKDIR tgbot
RUN pip install --upgrade pip; pip install poetry; poetry config virtualenvs.create false; poetry install RUN pip install --upgrade pip; pip install poetry; poetry config virtualenvs.create false; poetry install