-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile.dev
More file actions
35 lines (26 loc) · 744 Bytes
/
Copy pathDockerfile.dev
File metadata and controls
35 lines (26 loc) · 744 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
FROM python:3.12-slim
WORKDIR /opt/taurus-executor
# Install dependencies
RUN apt-get update && apt-get install -y --no-install-recommends \
curl \
&& rm -rf /var/lib/apt/lists/*
RUN pip install --no-cache-dir poetry==1.8.4
COPY pyproject.toml poetry.lock ./
RUN poetry config virtualenvs.create false \
&& poetry install --no-interaction --no-ansi
COPY src/ ./src/
COPY proto/ ./proto/
COPY scripts/ ./scripts/
COPY manage/ ./manage/
COPY Makefile ./
# Generate gRPC code
RUN make build-all
# Environment variables
ENV PYTHONUNBUFFERED=1 \
GRPC_HOST=0.0.0.0 \
GRPC_PORT=50051 \
LOG_LEVEL=DEBUG \
LOG_FORMAT=text
EXPOSE 50051
# Run with auto-reload for development
CMD ["python", "-m", "executor_core.main"]