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 node_modules
npm-debug.log npm-debug.log
readme* readme*

View File

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