File size: 589 Bytes
4bec359
2aff6f3
0e968fe
2aff6f3
 
 
8361bc6
b5c79d7
2aff6f3
f2431dd
eadfc90
0e968fe
eadfc90
dab4766
2aff6f3
eadfc90
2aff6f3
eadfc90
2aff6f3
 
 
35ce96b
 
4bec359
35ce96b
4bec359
2aff6f3
4bec359
67a7597
0e968fe
9dc6849
a24ffe2
f3b4b2e
 
b5c79d7
0e968fe
f81d12e
 
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
37
38
#### Base OS ####
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

USER user

ENV HOME=/home/user \
	PATH=/home/user/.local/bin:/home/user/.pixi/bin:$PATH \
    PUP=/home/user/pup

WORKDIR $HOME

CMD ["bash"]


#### Puppy ####
FROM base AS puppy

COPY --chown=user pup .

RUN $PUP

RUN pup py3.11

RUN pup fetch appenv fastapi uvicorn itables

COPY --chown=user main.py .

EXPOSE 7860

# CMD ["appenv/.venv/bin/uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]
CMD ["pup", "play"]