add workdir to docker for faster build

This commit is contained in:
سامان بهشتیان (YiiMan) committed 2024-12-23 19:48:16 +00:00
1 parent 6731b1d562
commit 5e4976412a
1 file changed
+1
+1
View File
@@ -1,5 +1,6 @@
# Stage 1: build the application
FROM nginx:alpine AS build-nginx
WORKDIR /app
RUN apk add nodejs npm
COPY . .
RUN npm i