-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
26 lines (20 loc) · 863 Bytes
/
Copy pathDockerfile
File metadata and controls
26 lines (20 loc) · 863 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
# Use an official Python runtime as a parent image
FROM python:3.11.3-slim-bullseye
# Set environment variables
ENV PYTHONDONTWRITEBYTECODE 1
ENV PYTHONUNBUFFERED 1
# Install system dependencies
RUN apt-get update && \
apt-get install -y --no-install-recommends gcc libpq-dev git && \
rm -rf /var/lib/apt/lists/*
RUN git config --global user.name "readme-bot"
RUN git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
WORKDIR /app
COPY pyproject.toml .
COPY src/ src/
RUN git config --global user.name "readme-bot"
RUN git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
# Install Poetry and project dependencies
RUN pip install uv && uv pip install -r pyproject.toml --system
# WORKDIR is overriden by Github Actions, so run full path
ENTRYPOINT ["uv", "run", "/app/src/main.py"]