File size: 602 Bytes
c8743ab 82815c9 c8743ab 82815c9 c8743ab 82815c9 c8743ab 82815c9 c8743ab 82815c9 c8743ab 82815c9 |
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 |
FROM debian:latest AS puppy
# prep
RUN apt-get update \
&& apt-get install -y curl \
&& apt-get clean
RUN useradd -m -u 1000 user
USER user
ENV PATH=/home/user/.pixi/bin:$PATH
RUN mkdir $HOME/puppy
WORKDIR $HOME/puppy
# install puppy
RUN curl -fsSL https://raw.githubusercontent.com/liquidcarbon/puppy/main/pup.sh | bash -s 3.12
RUN pup
# create app environment
RUN pup add appenv duckdb gradio itables python-ulid
RUN pup list
COPY --chown=user *.py appenv/
COPY --chown=user *.json appenv/
EXPOSE 7860
CMD ["appenv/.venv/bin/uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]
|