-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
30 lines (22 loc) · 775 Bytes
/
Dockerfile
File metadata and controls
30 lines (22 loc) · 775 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
FROM ghcr.io/astral-sh/uv:python3.13-alpine
# 필요한 패키지 설치
RUN apk add --no-cache bzip2-dev \
coreutils \
gcc \
libc-dev \
libffi-dev \
libressl-dev \
linux-headers
WORKDIR /app
ENV UV_SYSTEM_PYTHON=1
ADD uv.lock .
COPY pyproject.toml uv.lock ./
RUN --mount=type=cache,target=/root/.cache/uv \
--mount=type=bind,source=uv.lock,target=uv.lock \
--mount=type=bind,source=pyproject.toml,target=pyproject.toml \
uv sync --frozen --no-install-project --no-editable
COPY . /app
RUN --mount=type=cache,target=/root/.cache/uv \
uv sync --frozen --no-editable --compile-bytecode
ENTRYPOINT ["/app/.venv/bin/newrelic-admin", "run-program"]
CMD ["sh", "-c", "uv run poe prod --port=${PORT:?error}"]