mirror of
https://github.com/catspace-dev/unicheckbot.git
synced 2024-11-21 21:46:32 +03:00
added bot dockerfile
This commit is contained in:
parent
49bff0b42c
commit
1b9b6c5cce
13
apps/Dockerfile-tgbot
Normal file
13
apps/Dockerfile-tgbot
Normal file
|
@ -0,0 +1,13 @@
|
|||
FROM python:3.8.3-alpine
|
||||
|
||||
WORKDIR /usr/src/app
|
||||
ENV PYTHONDONTWRITEBYTECODE 1
|
||||
ENV PYTHONUNBUFFERED 1
|
||||
|
||||
RUN apk update \
|
||||
&& apk add gcc python3-dev musl-dev libffi-dev openssl-dev make
|
||||
|
||||
COPY . .
|
||||
WORKDIR tgbot/tgbot
|
||||
RUN pip install --upgrade pip; pip install poetry; poetry config virtualenvs.create false; poetry install
|
||||
CMD poetry shell; python bot.py
|
8
docker-compose-tgbot.yml
Normal file
8
docker-compose-tgbot.yml
Normal file
|
@ -0,0 +1,8 @@
|
|||
version: "3.3"
|
||||
services:
|
||||
tgbot:
|
||||
build:
|
||||
context: ./apps
|
||||
dockerfile: Dockerfile-tgbot
|
||||
env_file:
|
||||
- tgbot.env
|
Loading…
Reference in New Issue
Block a user