Compare commits

..

No commits in common. "55b8ceb5ba1156098c279f270639bc46822e255f" and "5ada0f105c5b55dd5f7e54bec156f515409cb9d2" have entirely different histories.

2 changed files with 3 additions and 10 deletions

View File

@ -1,4 +0,0 @@
node_modules
.git
.gitignore
Dockerfile

View File

@ -1,19 +1,16 @@
FROM node:18-alpine
FROM node:18
WORKDIR /app
# Copy package files & install deps
COPY package*.json ./
RUN npm ci --only=production
RUN npm install
# Copy source code
COPY . .
# 🔒 non-root user (aman di Kubernetes)
# 🔒 Ubah kepemilikan dan pakai user non-root
RUN chown -R node:node /app
USER node
EXPOSE 3000
# Jalankan React dev server / Express tergantung project kamu
CMD ["npm", "start"]