This commit is contained in:
parent
43299b4d9e
commit
9d604d9566
@ -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
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user