28 lines
535 B
Docker
28 lines
535 B
Docker
FROM python:3.11-slim as builder
|
|
|
|
WORKDIR /app
|
|
|
|
ENV PYTHONUNBUFFERED 1
|
|
ENV PYTHONDONTWRITEBYTECODE 1
|
|
ENV PIP_NO_CACHE_DIR 1
|
|
ENV RUNTIME docker
|
|
ENV PYTHONPATH src
|
|
|
|
RUN apt-get update
|
|
RUN apt-get install -y git curl
|
|
|
|
# install uv
|
|
ADD --chmod=755 https://astral.sh/uv/install.sh /install.sh
|
|
RUN /install.sh && rm /install.sh
|
|
|
|
COPY src/requirements.txt .
|
|
|
|
RUN /root/.cargo/bin/uv pip install --system --no-cache -r requirements.txt
|
|
|
|
copy wallet wallet
|
|
|
|
COPY src src
|
|
|
|
ENTRYPOINT ["hypercorn", "app:create_app()"]
|
|
CMD ["-b", "0.0.0.0:3000"]
|