Signed-off-by: rizqevo <rizqevo@hotmail.com>
@@ -5,14 +5,15 @@ RUN mkdir -p /usr/src/app
WORKDIR /usr/src/app
# Installing dependencies
-COPY package.json ./
+COPY package.json /usr/src/app
RUN npm install
# Copying source files
-COPY . .
+COPY . /usr/src/app
# Building app
+RUN npm run build
EXPOSE 3000
# Running the app
-CMD "next" "start"
+CMD "npm" "run" "dev"