forked from elroy-bot/elroy
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile.dev
More file actions
31 lines (20 loc) · 1.14 KB
/
Copy pathDockerfile.dev
File metadata and controls
31 lines (20 loc) · 1.14 KB
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
FROM lunamidori5/pixelarch:quartz
## We are using Pixelarch here as it is built to be easyer to test / run real world programs as if you where on a prod arch server / desktop
## It has a full copy of bash installed (themed and setup with compleations), it also uses the ``yay`` package manager
## Giving users the power to use the AUR or the normal Arch repos
RUN sudo sed -i 's/Quartz/Elroy/g' /etc/os-release
## Using the sed command lets us tell the OS that it is now not quartz flavored.
## This lets the os know what type of flavor its running for programs that check
## Quartz is the flavor as it only has ``yay`` installed and nothing else, so its only about 400mbs total
## ``yay`` uses the same command layout as pacman, making it easyer to install programs
## More info - https://hub.docker.com/repository/docker/lunamidori5/pixelarch/general
ARG USERNAME=midori-ai
USER $USERNAME
WORKDIR /home/$USERNAME/app
RUN yay -Syu --noconfirm uv && yay -Yccc --noconfirm
COPY . .
ENV ELROY_HOME=/home/$USERNAME/app/data
RUN sudo mkdir -p /home/$USERNAME/app/data
RUN sudo chmod -R 777 /home/$USERNAME/app
ENTRYPOINT ["uv", "run", "elroy"]
CMD ["chat"]