From 4c258e82571fa0dc497b57067ee874d034d22881 Mon Sep 17 00:00:00 2001 From: alexmerm <1852285+alexmerm@users.noreply.github.com> Date: Sat, 23 Oct 2021 14:38:54 -0400 Subject: [PATCH] Pinned Docker Build to alpine:31.4 and fixed issue of failure due to npm --- Dockerfile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index c7221ed2..d9d2ef0a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,9 +1,9 @@ #Building Scraper -FROM alpine:latest AS tiktok_scraper.build +FROM alpine:3.14 AS tiktok_scraper.build WORKDIR /usr/app -RUN apk update && apk add --update nodejs nodejs-npm python3 pkgconfig pixman-dev +RUN apk update && apk add --update nodejs npm python3 pkgconfig pixman-dev RUN apk add --update cairo-dev pango-dev make g++ COPY package*.json tsconfig.json .prettierrc.js bin ./ @@ -15,11 +15,11 @@ RUN rm -rf src node_modules #Using Scraper -FROM alpine:latest AS tiktok_scraper.use +FROM alpine:3.14 AS tiktok_scraper.use WORKDIR /usr/app -RUN apk update && apk add --update nodejs nodejs-npm python3 pkgconfig pixman-dev +RUN apk update && apk add --update nodejs npm python3 pkgconfig pixman-dev RUN apk add --update cairo-dev pango-dev make g++ COPY --from=tiktok_scraper.build ./usr/app ./