cash_tracker/Dockerfile.frontend
2025-08-28 23:04:25 +03:00

24 lines
386 B
Docker

FROM node:18-alpine
WORKDIR /app
# Copy package files
COPY package*.json ./
# Install dependencies
RUN npm ci --only=production
# Copy source code
COPY . .
# Build the application
RUN npm run build
# Install a simple HTTP server for serving static content
RUN npm install -g serve
# Expose port
EXPOSE 3000
# Serve the built application
CMD ["serve", "-s", "dist", "-l", "3000"]