File size: 722 Bytes
5f0db80
04069d4
5f0db80
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
70d57ef
 
5f0db80
 
fca6589
04069d4
 
 
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
FROM node:22-alpine AS builder

RUN apk add git

WORKDIR /app

RUN git clone https://github.com/CorentinTh/enclosed

WORKDIR /app/enclosed

RUN npm install -g pnpm --ignore-scripts && \
    pnpm install --frozen-lockfile --ignore-scripts

RUN pnpm --filter @enclosed/crypto run build && \
    pnpm --filter @enclosed/lib run build && \
    pnpm --filter @enclosed/app-client run build && \
    pnpm --filter @enclosed/app-server run build:node

FROM node:22-alpine

WORKDIR /app

COPY --from=builder /app/enclosed/packages/app-client/dist ./public
COPY --from=builder /app/enclosed/packages/app-server/dist-node/index.cjs ./index.cjs

RUN mkdir -p /app/.data && chmod 777 /app/.data

EXPOSE 8787

CMD ["node", "index.cjs"]