add docker

This commit is contained in:
Yusron alamsyah
2026-03-26 15:54:08 +07:00
parent 6b49ac859d
commit dc8e9a9208
6 changed files with 230 additions and 4 deletions
+22
View File
@@ -0,0 +1,22 @@
# Development Dockerfile
FROM node:20-alpine
WORKDIR /app
# Install basic tools
RUN apk add --no-cache git
# Copy package files
COPY package.json yarn.lock* package-lock.json* ./
# Install dependencies
RUN npm install --frozen-lockfile || yarn install --frozen-lockfile
# Copy source code
COPY . .
# Expose dev port
EXPOSE 3030
# Run development server
CMD ["npm", "run", "dev"]