-
Notifications
You must be signed in to change notification settings - Fork 13
/
Dockerfile
33 lines (25 loc) · 829 Bytes
/
Dockerfile
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
FROM ubuntu:noble
ENV PATH="/root/.local/bin:$PATH"
ENV VIRTUAL_ENV="/opt/venv"
ENV PATH="$VIRTUAL_ENV/bin:$PATH"
# cargo required for pydantic-core?
# libxml2 libxslt for lxml
RUN apt-get update && apt-get install -y git curl cargo
RUN curl -LsSf https://astral.sh/uv/install.sh | sh
RUN uv python install 3.12
RUN uv venv $VIRTUAL_ENV
RUN curl -fsSL https://raw.githubusercontent.com/tj/n/master/bin/n | bash -s lts && \
npm install -g n && \
npm i -g wrangler
WORKDIR /app
COPY requirements.txt .
COPY README.md .
COPY metrics.json /root/.config/wrangler/metrics.json
RUN uv pip install --upgrade pip setuptools wheel
RUN uv pip install -r requirements.txt
RUN python -m compileall
ENV CLOUDFLARE_API_TOKEN=
# ENV TZ=America/Chicago
COPY entrypoint.sh .
# ENTRYPOINT ['entrypoint.sh']
CMD '/app/entrypoint.sh'