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