-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
38 lines (27 loc) · 742 Bytes
/
Dockerfile
File metadata and controls
38 lines (27 loc) · 742 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
38
FROM python:3.11-slim
WORKDIR /app
# Install system dependencies
RUN apt-get update && apt-get install -y \
git \
curl \
&& rm -rf /var/lib/apt/lists/*
# Install Poetry
RUN pip install poetry
# Copy dependency files
COPY pyproject.toml ./
# Configure Poetry to not create virtualenv (we're in a container)
RUN poetry config virtualenvs.create false
# Install dependencies
RUN poetry install --no-interaction --no-ansi --no-root
# Copy source code
COPY . .
# Install the package
RUN poetry install --no-interaction --no-ansi
# Create workspace directory
RUN mkdir -p /workspace
# Set environment variables
ENV JIRADE_WORKSPACE_DIR=/workspace
ENV PYTHONUNBUFFERED=1
# Default command
ENTRYPOINT ["jirade"]
CMD ["--help"]