Create Dockerfile
Browse files- Dockerfile +23 -0
Dockerfile
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
FROM debian:latest AS puppy
|
| 2 |
+
|
| 3 |
+
# prep
|
| 4 |
+
RUN apt-get update \
|
| 5 |
+
&& apt-get install -y curl \
|
| 6 |
+
&& apt-get clean
|
| 7 |
+
RUN useradd -m -u 1000 user
|
| 8 |
+
USER user
|
| 9 |
+
|
| 10 |
+
ENV PATH=/home/user/.pixi/bin:$PATH
|
| 11 |
+
RUN mkdir $HOME/puppy
|
| 12 |
+
WORKDIR $HOME/puppy
|
| 13 |
+
|
| 14 |
+
# install puppy
|
| 15 |
+
RUN curl -fsSL https://raw.githubusercontent.com/liquidcarbon/puppy/main/pup.sh | bash -s 3.13
|
| 16 |
+
RUN pup
|
| 17 |
+
RUN pixi add jupyter
|
| 18 |
+
RUN pup add rawr requests
|
| 19 |
+
RUN pup list
|
| 20 |
+
|
| 21 |
+
EXPOSE 7860
|
| 22 |
+
CMD pixi run jupyter --ip 0.0.0.0 --port 7860 --no-browser --no-token \
|
| 23 |
+
--PasswordIdentityProvider.hashed_password='argon2:$argon2id$v=19$m=10240,t=10,p=8$r/6qMnrYrVBhhnzO4mNgqQ$uDWGIeGNu9Wfyscoq8gJ+WUF5lXX+BJVLrIRtKJGWNQ'
|