ทดสอบ DevSecOps
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Flook 2025-02-01 05:03:53 +07:00
parent 43299b4d9e
commit 9d604d9566

View File

@ -18,8 +18,6 @@ RUN npm run build # ✅ ตอนนี้ vite build จะใช้ @vitejs/p
# ใช้ Nginx เป็น Web Server สำหรับเสิร์ฟไฟล์ static # ใช้ Nginx เป็น Web Server สำหรับเสิร์ฟไฟล์ static
FROM nginx:alpine FROM nginx:alpine
RUN adduser -D myuser
USER myuser
# คัดลอกไฟล์ที่ build แล้วไปยัง Nginx # คัดลอกไฟล์ที่ build แล้วไปยัง Nginx
COPY --from=build /app/dist /usr/share/nginx/html COPY --from=build /app/dist /usr/share/nginx/html