File size: 753 Bytes
64509d7
 
5563b70
 
cd6e606
64509d7
 
 
 
 
 
 
 
 
 
 
 
 
5563b70
64509d7
 
 
efbde9c
 
 
 
 
 
 
 
 
 
982a223
 
6b4b3b3
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 ubuntu:22.04

# Update package lists
RUN apt-get update

# Install curl and other dependencies
RUN apt-get install -y curl

# Add NodeSource repository for Node.js LTS
RUN curl -fsSL https://deb.nodesource.com/setup_20.x | bash -
# Install Node.js and npm
RUN apt-get install -y nodejs

# Install Python and pip
RUN apt-get install -y python3 python3-pip
# With pip.
RUN pip install uv

RUN npm i -g @dadigua/hyper-chat

ENV NODE_ENV=production

# Set up a new user named "user" with user ID 1000
RUN useradd -m -u 1000 user

# Switch to the "user" user
USER user

# Set home to the user's home directory
ENV HOME=/home/user \
	PATH=/home/user/.local/bin:$PATH

WORKDIR $HOME/app

CMD ["npx", "hyper-chat", "--appDataDir=/home/user/app/HyperChat"]