Open gabrielctn opened 3 years ago
I found a solution inspired by this
with
FROM node:alpine as nodebuild
RUN apk update && \
apk add ca-certificates \
git \
musl-dev \
libtool \
zlib \
zlib-dev \
autoconf \
automake \
bash \
g++ \
gcc \
musl-dev \
libc6-compat \
libjpeg-turbo-dev \
libpng-dev \
make \
nasm && \
git clone https://github.com/mattermost/focalboard && \
cd focalboard/webapp && \
npm install && npm run pack
Now docker build -t focalboard .
works.
Summary: Docker build does not complete properly because of a missing package in the nodebuild layer for the Dockerfile (node:alpine image). Here is the full build output with the error at the end:
Steps to reproduce the behavior: $ git pull https://github.com/mattermost/focalboard.git (commit 225c4bda5b47bb879c01d3d22abc1eb1b2313f6c) $ cd focalboard/docker $ docker build -t focalboard .
Expected behavior: A proper build of the docker image.
Platform: Ubuntu 20.04 x86_64
According to this post it seems like the package autoconf is missing in the nodebuild layer, but then more errors are resulting from it and I don't know how to resolve them ...