pup-fileserver / Dockerfile
pup-py's picture
pixi on path
dab4766
raw
history blame
759 Bytes
FROM debian:latest AS base
RUN apt-get update \
&& apt-get install -y curl \
&& apt-get clean
# Create user
RUN useradd -m -u 1000 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:/home/user/.pixi/bin:$PATH \
PUP=/home/user/pup
WORKDIR $HOME
COPY --chown=user pup .
CMD ["bash"]
FROM base
RUN $PUP
RUN ls -la && pup which && echo $PATH
RUN pup py3.11
EXPOSE 7860
# CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860"]
# CMD ["pixi", "run", "python", "-m", "http.server", "7860", "--directory", "."]