Skip to content

Commit

Permalink
chore(docker): Remove unused dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
FoxxMD committed Feb 19, 2024
1 parent d3a70bf commit af24e0f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 14 deletions.
13 changes: 3 additions & 10 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,11 @@ ENV TZ=Etc/GMT
RUN \
echo "**** install build packages ****" && \
apk add --no-cache \
alpine-base \
avahi \
avahi-tools \
git \
nodejs \
npm \
#yarn \
openssh && \
&& \
echo "**** cleanup ****" && \
rm -rf \
/root/.cache \
Expand All @@ -26,9 +23,6 @@ ENV CONFIG_DIR=$data_dir

COPY docker/root/ /

RUN npm install -g patch-package \
&& chown -R root:root /usr/local/lib/node_modules/patch-package

WORKDIR /app

FROM base as build
Expand All @@ -41,8 +35,7 @@ FROM base as build
COPY --chown=abc:abc package*.json tsconfig.json ./
COPY --chown=abc:abc patches ./patches


RUN npm install \
RUN npm ci \
&& chown -R root:root node_modules
#RUN yarn install

Expand Down Expand Up @@ -75,7 +68,7 @@ ENV IS_DOCKER=true
# && rm -rf node_modules/ts-node \
# && rm -rf node_modules/typescript

RUN npm install --omit=dev \
RUN npm ci --omit=dev \
&& npm cache clean --force \
&& chown -R abc:abc node_modules \
&& rm -rf node_modules/@types
Expand Down
4 changes: 0 additions & 4 deletions debian.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,6 @@ ENV CONFIG_DIR=$data_dir

COPY docker/root /

RUN npm install -g \
patch-package \
&& chown -R root:root /usr/lib/node_modules/patch-package

WORKDIR /app

FROM base as build
Expand Down

0 comments on commit af24e0f

Please sign in to comment.