1
0
Fork 0

Compare commits

...

2 Commits

Author SHA1 Message Date
Alex Kotov b2e6e86911
Mount source code as volume 2023-01-08 17:23:16 +04:00
Alex Kotov 1a661cb7c3
Improve project structure 2023-01-08 17:17:37 +04:00
5 changed files with 8 additions and 6 deletions

2
.gitignore vendored
View File

@ -1 +1,3 @@
__pycache__/
/.env

View File

@ -1,9 +1,9 @@
FROM ubuntu:22.10
RUN mkdir /app
RUN mkdir -p /app/mirrortea/
WORKDIR /app
RUN apt-get update --yes
RUN apt-get install --yes python3 python3-pip
COPY requirements.txt /app
COPY requirements.txt /app/
RUN pip3 install -r requirements.txt
COPY mirrortea /app
ENTRYPOINT ["/app/mirrortea"]
COPY mirrortea/* /app/mirrortea/
ENTRYPOINT ["/usr/bin/python3", "/app/mirrortea"]

View File

@ -4,3 +4,5 @@ services:
app:
build: .
env_file: '.env'
volumes:
- './mirrortea:/app/mirrortea/'

2
mirrortea → mirrortea/__main__.py Executable file → Normal file
View File

@ -1,5 +1,3 @@
#!/usr/bin/env python3
import asyncio
import os
import sys

Binary file not shown.