feat: Add Dockerfile and docker-compose.yml for project containerization
This commit is contained in:
parent
f689894de5
commit
91330c03c2
2 changed files with 3 additions and 4 deletions
|
|
@ -1,5 +1,5 @@
|
|||
# --- Build Stage ---
|
||||
FROM node:20-alpine AS build-stage
|
||||
FROM node:20-bullseye-slim AS build-stage
|
||||
|
||||
# กำหนดโฟลเดอร์ทำงานใน Container
|
||||
WORKDIR /app
|
||||
|
|
@ -17,7 +17,7 @@ COPY . .
|
|||
RUN npm run build
|
||||
|
||||
# --- Production Stage ---
|
||||
FROM node:20-alpine AS production-stage
|
||||
FROM node:20-bullseye-slim AS production-stage
|
||||
|
||||
# กำหนดโฟลเดอร์ทำงาน
|
||||
WORKDIR /app
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue