Запуск из docker-compose
This commit is contained in:
parent
7bcfcc458c
commit
fdd40e53e1
14
Dockerfile
Normal file
14
Dockerfile
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
FROM python:3.11
|
||||||
|
|
||||||
|
WORKDIR /opt/app
|
||||||
|
|
||||||
|
ENV PYTHONPATH '/opt/app'
|
||||||
|
|
||||||
|
COPY requirements.txt requirements.txt
|
||||||
|
|
||||||
|
RUN python -m pip install --no-cache-dir --upgrade pip \
|
||||||
|
&& pip install --no-cache-dir -r requirements.txt
|
||||||
|
|
||||||
|
COPY /src .
|
||||||
|
|
||||||
|
RUN python main.py
|
8
docker-compose.yml
Normal file
8
docker-compose.yml
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
version: '3.2'
|
||||||
|
services:
|
||||||
|
etl:
|
||||||
|
build: .
|
||||||
|
container_name: etl
|
||||||
|
env_file:
|
||||||
|
- .env
|
||||||
|
restart: always
|
Loading…
Reference in New Issue
Block a user