-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
37 lines (26 loc) · 803 Bytes
/
Dockerfile
File metadata and controls
37 lines (26 loc) · 803 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
36
37
FROM python:3.11-slim
WORKDIR /app
# Set environment variables
ENV PYTHONPATH=/app
ENV PYTHONUNBUFFERED=1
ENV POETRY_VERSION=1.7.1
# Install system dependencies
RUN apt-get update && apt-get install -y --no-install-recommends \
build-essential \
libmagic1 \
&& rm -rf /var/lib/apt/lists/*
# Install Poetry
RUN pip install --no-cache-dir poetry==${POETRY_VERSION}
# Configure Poetry
RUN poetry config virtualenvs.create false
# Copy project files
COPY pyproject.toml poetry.lock* ./
# Copy application code
COPY . .
# Install the package with all dependencies
RUN poetry install --no-interaction --no-ansi --no-root
RUN poetry install --no-interaction --no-ansi
# Create output directory
RUN mkdir -p /app/output
# Set the default command
CMD ["poetry", "run", "python", "dune.py"]