Optimize Dockerfile for better caching

This commit is contained in:
Mahesh Bandara Wijerathna
2023-02-16 06:00:40 +05:30
parent 1b8ad57e73
commit da74a126e5
+5 -1
View File
@@ -8,7 +8,11 @@ WORKDIR /bs3mc
COPY package.json .
RUN npm install --ignore-scripts --no-audit
COPY . .
COPY binding.gyp .
COPY deps ./deps
COPY src ./src
RUN npm run build-debug
COPY . .
CMD ["npm", "test"]