mirror of
https://github.com/Routstr/routstr-core.git
synced 2026-08-04 00:56:15 +00:00
29 lines
499 B
Docker
29 lines
499 B
Docker
FROM ghcr.io/astral-sh/uv:python3.11-alpine
|
|
|
|
# Install system dependencies required for secp256k1
|
|
RUN apk add --no-cache \
|
|
pkgconf \
|
|
build-base \
|
|
automake \
|
|
autoconf \
|
|
libtool \
|
|
m4 \
|
|
perl
|
|
RUN apk add git
|
|
|
|
COPY uv.lock pyproject.toml ./
|
|
|
|
RUN uv add git+https://github.com/saschanaz/secp256k1-py.git#branch=upgrade060
|
|
# RUN uv sync
|
|
|
|
WORKDIR /app
|
|
|
|
COPY . .
|
|
|
|
ENV PORT=8000
|
|
ENV PYTHONUNBUFFERED=1
|
|
|
|
EXPOSE 8000
|
|
|
|
CMD ["/.venv/bin/fastapi", "run", "router", "--host", "0.0.0.0"]
|