Phi-3-AI-Explorer / Dockerfile
ProfessorCEO's picture
Update Dockerfile
c1f8723 verified
Raw
History Blame Contribute Delete
357 Bytes
# Use Node 20
FROM node:20-slim
WORKDIR /app
# Copy package files
COPY package*.json ./
# Install ALL dependencies (including devDeps for tsx)
RUN npm install
# Copy source code
COPY . .
# Expose the port
EXPOSE 3000
# Start the server using tsx
# The model will download to the default cache directory on first request
CMD ["npx", "tsx", "server.ts"]