From 87308db51286713690c85ff60b45f781d8f652c3 Mon Sep 17 00:00:00 2001 From: Alex Kotov Date: Sun, 8 Jan 2023 17:17:37 +0400 Subject: [PATCH] Improve project structure --- Dockerfile | 8 ++++---- mirrortea => mirrortea/__main__.py | 2 -- 2 files changed, 4 insertions(+), 6 deletions(-) rename mirrortea => mirrortea/__main__.py (97%) mode change 100755 => 100644 diff --git a/Dockerfile b/Dockerfile index 662b6ad..4648dc4 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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"] diff --git a/mirrortea b/mirrortea/__main__.py old mode 100755 new mode 100644 similarity index 97% rename from mirrortea rename to mirrortea/__main__.py index 3f1985d..d332195 --- a/mirrortea +++ b/mirrortea/__main__.py @@ -1,5 +1,3 @@ -#!/usr/bin/env python3 - import asyncio import os import sys