Merge pull request #190 from gidzzz/reduce-docker-size

This commit is contained in:
Cohee
2023-04-28 10:22:00 +03:00
committed by GitHub
2 changed files with 2 additions and 2 deletions

View File

@@ -1,3 +1,4 @@
.git
node_modules
npm-debug.log
readme*

View File

@@ -16,7 +16,7 @@ WORKDIR ${APP_HOME}
COPY package*.json ./
RUN \
echo "*** Install npm packages ***" && \
npm install
npm install && npm cache clean --force
# Bundle app source
COPY . ./
@@ -40,7 +40,6 @@ RUN \
echo "*** Cleanup ***" && \
mv "./docker/docker-entrypoint.sh" "./" && \
rm -rf "./docker" && \
rm -rf "./.git" && \
echo "*** Make docker-entrypoint.sh executable ***" && \
chmod +x "./docker-entrypoint.sh" && \
echo "*** Convert line endings to Unix format ***" && \