Files
sciagent/fe0/Dockerfile
T
Thinh Lam 688fac73e9
CI/CD / backend (push) Failing after 2m8s
CI/CD / frontend (push) Failing after 1m40s
CI/CD / deploy (push) Has been skipped
sciagent code + Gitea Actions CI/CD
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-30 09:38:30 +07:00

20 lines
536 B
Docker

# Use Node.js 20 Alpine as the base image
FROM node:22-alpine
# Set working directory
WORKDIR /app
# Copy package.json and package-lock.json (if exists) to leverage Docker cache
COPY package*.json ./
# Install dependencies in a single RUN command to reduce layers
RUN npm install
# Copy the rest of the application code
COPY . .
# Expose Vite's default port
EXPOSE 8080
# Install deps then dev server (needed when /app/node_modules is a Docker volume).
CMD ["sh", "-c", "npm install && npm run dev -- --host 0.0.0.0 --port 8080"]