marimo-on-fastapi / Dockerfile
pup-py's picture
proper COPY
bded016
raw
history blame contribute delete
661 Bytes
FROM debian:latest AS puppy
# prep
RUN apt-get update \
&& apt-get install -y curl tree \
&& 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.13
RUN pup --help
# setup app env
RUN pup new appenv
WORKDIR appenv
# copy project files, install dependencies
COPY --chown=user . .
RUN tree
RUN pixi run uv sync --project .
# HELLO WORLD
EXPOSE 7860
CMD .venv/bin/granian --interface asgi src/main:app --host 0.0.0.0 --port 7860 --log --access-log --log-level DEBUG