aripbae commited on
Commit
f2e4376
·
verified ·
1 Parent(s): 6bc72a7

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +17 -0
Dockerfile ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM node:20-slim
2
+
3
+ RUN apt-get update && apt-get install -y git && rm -frRv /var/lib/apt/lists/*
4
+
5
+ WORKDIR /app
6
+ RUN chown -R 1000:1000 /app
7
+
8
+ USER 1000
9
+
10
+ RUN git clone https://github.com/codeforreal1/compressO.git .
11
+ RUN npm install -g pnpm
12
+ RUN pnpm install --ignore-scripts
13
+ RUN pnpm vite:build
14
+
15
+ EXPOSE 7860
16
+
17
+ CMD ["pnpm", "vite", "preview", "--port", "7860", "--host", "0.0.0.0"]