winx_prinx-api / server /Dockerfile
Sasha
feat: prepare transition to decoupled hosting (Render + Netlify + Supabase)
d9a03db
Raw
History Blame Contribute Delete
378 Bytes
FROM node:20
WORKDIR /app
# Copy package.json and package-lock.json first to cache layers
COPY package*.json ./
# Install only production dependencies (ignoring devDependencies)
RUN npm ci --omit=dev
# Copy all application files
COPY . .
# Expose port 3000
EXPOSE 3000
# Set environment to production
ENV NODE_ENV=production
# Run start command
CMD ["node", "server.js"]