Spaces:
Sleeping
Sleeping
mystery solved
Browse files- Dockerfile +3 -12
- pup +1 -1
Dockerfile
CHANGED
@@ -2,22 +2,14 @@ FROM bash:latest
|
|
2 |
|
3 |
RUN apk add --no-cache curl
|
4 |
|
5 |
-
# Create user
|
6 |
RUN mkdir -p /home/user && \
|
7 |
mkdir -p /etc/skel
|
8 |
-
|
9 |
-
# Add user entry to /etc/passwd and /etc/group
|
10 |
RUN echo "user:x:1000:1000::/home/user:/bin/bash" >> /etc/passwd && \
|
11 |
echo "user:x:1000:" >> /etc/group
|
12 |
-
|
13 |
-
# Set permissions for the home directory
|
14 |
RUN chown -R user:user /home/user
|
15 |
|
16 |
-
# RUN useradd -m -u 1000 user
|
17 |
-
|
18 |
-
RUN echo $SHELL
|
19 |
USER user
|
20 |
-
RUN echo $SHELL
|
21 |
|
22 |
ENV HOME=/home/user \
|
23 |
PATH=/home/user/.local/bin:$PATH \
|
@@ -28,12 +20,11 @@ WORKDIR $PUPHOME
|
|
28 |
|
29 |
COPY --chown=user . .
|
30 |
|
31 |
-
RUN
|
32 |
-
RUN /bin/bash $PUP
|
33 |
RUN pup py3.11
|
34 |
RUN pwd && ls -la
|
35 |
|
36 |
-
|
37 |
# CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860"]
|
38 |
|
39 |
CMD ["pixi", "run", "python", "-m", "http.server", "7860", "--directory", "."]
|
|
|
2 |
|
3 |
RUN apk add --no-cache curl
|
4 |
|
5 |
+
# Create user
|
6 |
RUN mkdir -p /home/user && \
|
7 |
mkdir -p /etc/skel
|
|
|
|
|
8 |
RUN echo "user:x:1000:1000::/home/user:/bin/bash" >> /etc/passwd && \
|
9 |
echo "user:x:1000:" >> /etc/group
|
|
|
|
|
10 |
RUN chown -R user:user /home/user
|
11 |
|
|
|
|
|
|
|
12 |
USER user
|
|
|
13 |
|
14 |
ENV HOME=/home/user \
|
15 |
PATH=/home/user/.local/bin:$PATH \
|
|
|
20 |
|
21 |
COPY --chown=user . .
|
22 |
|
23 |
+
RUN $PUP
|
|
|
24 |
RUN pup py3.11
|
25 |
RUN pwd && ls -la
|
26 |
|
27 |
+
EXPOSE 7860
|
28 |
# CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860"]
|
29 |
|
30 |
CMD ["pixi", "run", "python", "-m", "http.server", "7860", "--directory", "."]
|
pup
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
|
2 |
VERSION="pup v0 @ Apr 1 2024"
|
3 |
|
4 |
|
|
|
1 |
+
#!bash
|
2 |
VERSION="pup v0 @ Apr 1 2024"
|
3 |
|
4 |
|