diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..5538a38 --- /dev/null +++ b/.dockerignore @@ -0,0 +1,3 @@ +**/node_modules +**/npm-debug.log +**/.env \ No newline at end of file diff --git a/addon/.dockerignore b/addon/.dockerignore index e32c404..5538a38 100644 --- a/addon/.dockerignore +++ b/addon/.dockerignore @@ -1,3 +1,3 @@ -node_modules -npm-debug.log +**/node_modules +**/npm-debug.log **/.env \ No newline at end of file diff --git a/catalogs/.dockerignore b/catalogs/.dockerignore index e32c404..5538a38 100644 --- a/catalogs/.dockerignore +++ b/catalogs/.dockerignore @@ -1,3 +1,3 @@ -node_modules -npm-debug.log +**/node_modules +**/npm-debug.log **/.env \ No newline at end of file diff --git a/catalogs/Dockerfile b/catalogs/Dockerfile index 1d4ece6..d51871f 100644 --- a/catalogs/Dockerfile +++ b/catalogs/Dockerfile @@ -5,8 +5,8 @@ RUN apk update && apk upgrade && \ WORKDIR /home/node/app -COPY package*.json ./ +COPY ./catalogs . +COPY ./addon ../addon RUN npm ci --only-production -COPY . . CMD [ "node", "index.js" ] \ No newline at end of file