Open
Description
Hello, I am using this dockerfile configuration:
FROM node:16.20.0-alpine3.17@sha256:0ac2f8cba4274f3aeeb8dd2cde7714fe746b917df68a79eb9b4d5de053c5aa53 AS build
ARG FUNCTION_DIR
USER root
RUN apk --update --no-cache add \
elfutils-dev \
cmake \
curl-dev \
autoconf \
automake \
libtool \
python3 \
gcc \
make \
g++ \
zlib-dev\
binutils-dev\
unzip
ARG PHANTOMJS_VERSION
RUN wget -qO- "https://github.com/dustinblackman/phantomized/releases/download/${PHANTOMJS_VERSION}/dockerized-phantomjs.tar.gz" | tar xz -C /
ENV NODE_ENV=production
ENV PYTHON=/usr/bin/python3
RUN mkdir -p ${FUNCTION_DIR}
WORKDIR ${FUNCTION_DIR}
COPY package.json yarn.lock ./
RUN yarn --frozen-lockfile --production && yarn add [email protected] && rm -rf ${FUNCTION_DIR}/node_modules/aws-sdk/dist/ && rm -rf node_modules/rxjs/{src,bundles,_esm5,_esm2015}/ && chown -R root:root ${FUNCTION_DIR}/node_modules
However this error appears during the compiling:
#0 168.5 make[6]: Leaving directory '/opt/example/node_modules/aws-lambda-ric/deps/curl-curl-7_83_1/docs/libcurl'
#0 168.5 make[5]: Leaving directory '/opt/example/node_modules/aws-lambda-ric/deps/curl-curl-7_83_1/docs/libcurl'
#0 168.5 make[4]: Leaving directory '/opt/example/node_modules/aws-lambda-ric/deps/curl-curl-7_83_1/docs/libcurl'
#0 168.5 make[3]: Leaving directory '/opt/example/node_modules/aws-lambda-ric/deps/curl-curl-7_83_1'
#0 168.5 make[2]: Leaving directory '/opt/example/node_modules/aws-lambda-ric/deps/curl-curl-7_83_1'
#0 168.5 make[1]: Leaving directory '/opt/example/node_modules/aws-lambda-ric/deps/curl-curl-7_83_1'
#0 168.5 -- The CXX compiler identification is GNU 12.2.1
#0 168.5 -- Detecting CXX compiler ABI info
#0 168.5 -- Detecting CXX compiler ABI info - done
#0 168.5 -- Check for working CXX compiler: /usr/bin/c++ - skipped
#0 168.5 -- Detecting CXX compile features
#0 168.5 -- Detecting CXX compile features - done
#0 168.5 -- Found CURL: /usr/lib/libcurl.so (found version "8.1.1")
#0 168.5 -- Looking for backtrace
#0 168.5 -- Looking for backtrace - not found
#0 168.5 CMake Error at /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
#0 168.5 Could NOT find Backtrace (missing: Backtrace_LIBRARY Backtrace_INCLUDE_DIR)
#0 168.5 Call Stack (most recent call first):
#0 168.5 /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:594 (_FPHSA_FAILURE_MESSAGE)
#0 168.5 /usr/share/cmake/Modules/FindBacktrace.cmake:90 (find_package_handle_standard_args)
#0 168.5 CMakeLists.txt:44 (find_package)
#0 168.5
#0 168.5
#0 168.5 -- Configuring incomplete, errors occurred!
#0 168.5 See also "/opt/example/node_modules/aws-lambda-ric/deps/aws-lambda-cpp-0.2.8/build/CMakeFiles/CMakeOutput.log".
#0 168.5 See also "/opt/example/node_modules/aws-lambda-ric/deps/aws-lambda-cpp-0.2.8/build/CMakeFiles/CMakeError.log".
------
Dockerfile:36
--------------------
34 | WORKDIR ${FUNCTION_DIR}
35 | COPY package.json yarn.lock ./
36 | >>> RUN yarn --frozen-lockfile --production && yarn add [email protected] && rm -rf ${FUNCTION_DIR}/node_modules/aws-sdk/dist/ && rm -rf node_modules/rxjs/{ss
37 |
38 | #
--------------------
ERROR: failed to solve: process "/bin/sh -c yarn --frozen-lockfile --production && yarn add [email protected] && rm -rf ${FUNCTION_DIR}/node_modules/aws-sdk/dist/ &1
I am missing some other dependencies? I couldn't find any clue about.
Metadata
Metadata
Assignees
Labels
No labels