fix: Fix dependencies installation
This commit is contained in:
@@ -16,13 +16,9 @@ WORKDIR /app
|
|||||||
|
|
||||||
COPY server/.npmrc server/package.json server/package-lock.json ./
|
COPY server/.npmrc server/package.json server/package-lock.json ./
|
||||||
|
|
||||||
RUN apk add \
|
RUN npm install npm@latest --global \
|
||||||
g++ make python3 \
|
|
||||||
--virtual node-pre-gyp-dependencies \
|
|
||||||
--no-cache \
|
|
||||||
&& npm install npm@latest --global \
|
|
||||||
&& npm install --production \
|
&& npm install --production \
|
||||||
&& apk del node-pre-gyp-dependencies --purge
|
&& apk del vips-dependencies --purge
|
||||||
|
|
||||||
COPY docker-start.sh start.sh
|
COPY docker-start.sh start.sh
|
||||||
COPY server .
|
COPY server .
|
||||||
|
|||||||
@@ -24,5 +24,4 @@ RUN apk -U upgrade \
|
|||||||
&& ./configure \
|
&& ./configure \
|
||||||
&& make \
|
&& make \
|
||||||
&& make install-strip \
|
&& make install-strip \
|
||||||
&& rm -rf /tmp/vips-${VIPS_VERSION} \
|
&& rm -rf /tmp/vips-${VIPS_VERSION}
|
||||||
&& apk del vips-dependencies --purge
|
|
||||||
|
|||||||
Reference in New Issue
Block a user