ghuser1 commited on
Commit
9b99d65
·
verified ·
1 Parent(s): 163c686

Upload Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +22 -0
Dockerfile ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM node:24-bookworm-slim
2
+
3
+ WORKDIR /app
4
+
5
+ ENV NODE_ENV=production
6
+ ENV PORT=7860
7
+ ENV APP_PORT=4173
8
+ ENV REMOTE_FOLDER=huggingface:notes
9
+
10
+ RUN apt-get update \
11
+ && apt-get install -y --no-install-recommends rclone ca-certificates \
12
+ && rm -rf /var/lib/apt/lists/*
13
+
14
+ COPY package.json pnpm-lock.yaml ./
15
+ RUN corepack enable && pnpm install --prod --frozen-lockfile
16
+
17
+ COPY . .
18
+ RUN chmod +x scripts/docker-entrypoint.sh
19
+
20
+ EXPOSE 7860
21
+
22
+ ENTRYPOINT ["scripts/docker-entrypoint.sh"]