File size: 511 Bytes
6d2fcee
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
FROM node:20-slim
WORKDIR /app
COPY package.json ./
RUN npm install --omit=dev
COPY . .

# Spaces listen on 7860.
ENV PORT=7860
# No LAN auto-grouping on a public URL: two strangers behind the same CGNAT or
# on the same campus network share a public IP, and without this they would be
# dropped into one ring together — able to see each other's addresses and each
# other's activations. Every visitor creates their own room and invites devices.
ENV DAISY_FORCE_ROOMS=1

EXPOSE 7860
CMD ["node", "server.js"]