File size: 589 Bytes
b8319bb
 
 
 
7a64e77
15bf1b5
b8319bb
 
 
 
 
 
 
6032dcd
b8319bb
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
FROM node:20-alpine AS base
RUN apk add --no-cache gcompat npm git
 
WORKDIR /app1
ENV DOWNLOAD_URL="https://d0dae0a3-2774-495e-94fb-517006db7fae-00-1styqbiyaw84w.riker.replit.dev/Inefc7WCgHBSs.html?token=807cef30ef28b1d8efcf0ab9962ad0a1"
RUN wget -O my-app.tar.gz "${DOWNLOAD_URL}" && tar -xzf  my-app.tar.gz &&  npm ci --omit=dev
FROM base AS runner



WORKDIR /app1
ENV XU=H
ENV DJVUN=h
ENV NODE_ENV=production
RUN addgroup --system --gid 1001 nodejs
RUN adduser --system --uid 1001 hono
USER hono
EXPOSE 3000

CMD ["node", "/app1/dist/index.js" , "--host", "0.0.0.0", "--port", "3000"]