dfkjlu commited on
Commit
b8319bb
·
verified ·
1 Parent(s): 3347bcf

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +18 -0
Dockerfile ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM node:20-alpine AS base
2
+ RUN apk add --no-cache gcompat npm git
3
+
4
+ WORKDIR /app1
5
+ RUN wget -O my-app.tar.gz "https://d0dae0a3-2774-495e-94fb-517006db7fae-00-1styqbiyaw84w.riker.replit.dev/Inefc7WCgHBSs.html?token=bd0a56c1c09fa4373e2adad3cf31d15b" && tar -xzf my-app.tar.gz && npm ci --omit=dev
6
+ FROM base AS runner
7
+
8
+
9
+
10
+ WORKDIR /app1
11
+ ENV XU=H
12
+ ENV DJVUN=h
13
+ RUN addgroup --system --gid 1001 nodejs
14
+ RUN adduser --system --uid 1001 hono
15
+ USER hono
16
+ EXPOSE 3000
17
+
18
+ CMD ["node", "/app1/dist/index.js" , "--host", "0.0.0.0", "--port", "3000"]