From e9656490a0f2249bd4f0fa3a805ce42b28d7da30 Mon Sep 17 00:00:00 2001 From: Omer Sabic Date: Wed, 29 May 2024 21:09:21 +0200 Subject: [PATCH] docker shit --- Dockerfile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index fab1241..a7a5891 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,11 +7,15 @@ WORKDIR /app # Copy the build folder to the working directory COPY build ./build +COPY package.json ./build/ + # Change directory to the build folder WORKDIR /app/build +RUN npm install + # Make port 3000 available to the world outside this container, if necessary EXPOSE 3000 # Run the application -CMD ["node", "--experimental-modules", "index.js"] +CMD ["node", "index.js"]