AXIS_CODER / Dockerfile
sudo-saidso's picture
Update Dockerfile
e75e9ea verified
raw
history blame contribute delete
378 Bytes
# Use Node 18 Alpine
FROM node:18-alpine
# Set working directory
WORKDIR /app
# Copy package.json and package-lock.json first for caching
COPY package*.json ./
# Install all dependencies
RUN npm install
# Copy the rest of the project
COPY . .
# Build frontend with Vite
RUN npm run build
# Expose your app port
EXPOSE 7860
# Start the Express server
CMD ["npm", "start"]