написал докерфайл
This commit is contained in:
parent
0f80658ea3
commit
517b6300a2
@ -1,7 +1,7 @@
|
|||||||
version: '3.8'
|
version: '3.8'
|
||||||
|
|
||||||
services:
|
services:
|
||||||
app_moona:
|
app_incepted:
|
||||||
build:
|
build:
|
||||||
context: ./incepted
|
context: ./incepted
|
||||||
volumes:
|
volumes:
|
||||||
|
|||||||
15
incepted/Dockerfile
Normal file
15
incepted/Dockerfile
Normal 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"]
|
||||||
Loading…
x
Reference in New Issue
Block a user