FROM bash:latest RUN apk add --no-cache curl # Create user RUN mkdir -p /home/user && \ mkdir -p /etc/skel RUN echo "user:x:1000:1000::/home/user:/bin/bash" >> /etc/passwd && \ echo "user:x:1000:" >> /etc/group RUN chown -R user:user /home/user USER user ENV HOME=/home/user \ PATH=/home/user/.local/bin:$PATH \ PUPHOME=/home/user/pup \ PUP=/home/user/pup/pup WORKDIR $PUPHOME COPY --chown=user . . RUN $PUP RUN pup py3.11 RUN pwd && ls -la EXPOSE 7860 # CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860"] CMD ["pixi", "run", "python", "-m", "http.server", "7860", "--directory", "."]