cipher / Dockerfile
salmanch123
feat: push fixed compilation tsconfig
60050be
Raw
History Blame Contribute Delete
445 Bytes
FROM node:22-alpine
WORKDIR /app
# Install build dependencies for native modules
RUN apk add --no-cache python3 make g++
# Copy dependency mappings and install
COPY package*.json ./
RUN npm install
# Copy all project files
COPY . .
# Compile TS files to dist/
RUN npx tsc
# Expose port (HF requires this for Docker spaces)
EXPOSE 7860
# Run the compiled javascript directly for instant boot
CMD ["node", "dist/scripts/oracle_service.js"]