-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
39 lines (30 loc) · 744 Bytes
/
Copy pathDockerfile
File metadata and controls
39 lines (30 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
36
37
38
39
FROM ubuntu:24.04
WORKDIR /code
RUN apt-get update -y && apt-get install curl wget git zip -y
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
libatomic1 \
build-essential \
pkg-config \
zlib1g-dev \
libxml2-dev \
libxslt1-dev \
libxmlsec1-dev \
libxmlsec1-openssl \
&& rm -rf /var/lib/apt/lists/*
# API dev
COPY --from=ghcr.io/astral-sh/uv:0.10.12 /uv /uvx /bin/
COPY pyproject.toml .python-version README.md ./
RUN uv sync
ENV PATH="/code/.venv/bin:$PATH"
ENV PYTHONPATH=/code
RUN uv tool install prek
ENV PATH="/root/.local/bin:$PATH"
# LLMs
RUN curl -fsSL https://bun.com/install | bash
ENV PATH="/root/.bun/bin:$PATH"
RUN bun install -g @openai/codex
# Code
COPY . .
# Git
RUN prek install