File size: 759 Bytes
2aff6f3
0e968fe
2aff6f3
 
 
8361bc6
b5c79d7
2aff6f3
 
 
 
 
 
f2431dd
eadfc90
0e968fe
eadfc90
dab4766
2aff6f3
eadfc90
2aff6f3
eadfc90
2aff6f3
eadfc90
2aff6f3
 
 
 
 
dab4766
67a7597
0e968fe
b5c79d7
0e968fe
 
24e33f2
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
28
29
30
31
32
33
34
35
36
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", "."]