написал докерфайл

This commit is contained in:
Андрей Дувакин 2024-12-14 18:30:50 +05:00
parent 0f80658ea3
commit 517b6300a2
2 changed files with 16 additions and 1 deletions

View File

@ -1,7 +1,7 @@
version: '3.8'
services:
app_moona:
app_incepted:
build:
context: ./incepted
volumes:

15
incepted/Dockerfile Normal file
View File

@ -0,0 +1,15 @@
FROM python:3.10-slim
RUN apt-get update && apt-get install -y \
libpq-dev \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
CMD ["python", "main.py"]