From 3e31ba21bd1ff7a0be474422053e07ab18c15fe9 Mon Sep 17 00:00:00 2001 From: bmamihai Date: Thu, 15 Dec 2022 13:20:22 +0200 Subject: [PATCH] replace individual copy with copy all --- .dockerignore | 2 ++ Dockerfile | 7 +------ 2 files changed, 3 insertions(+), 6 deletions(-) create mode 100644 .dockerignore diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..be971a1 --- /dev/null +++ b/.dockerignore @@ -0,0 +1,2 @@ +node_modules +doc \ No newline at end of file diff --git a/Dockerfile b/Dockerfile index 4229901..a992199 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,12 +8,7 @@ RUN apt-get update && \ RUN curl -fsSL https://deb.nodesource.com/setup_18.x | bash - RUN apt-get install -y nodejs -RUN mkdir -p server/ssl -RUN mkdir -p public/ - -COPY .env app.js package.json /app/ -COPY server/ssl/* /app/server/ssl/ -COPY public/* /app/public/ +COPY . /app/ RUN npm install