我有一个用于nodejs应用程序的dockerfile。每当我尝试构建它时,都会遇到此错误:
ERROR: unsatisfiable constraints:
musl-1.1.24-r6:
breaks: musl-utils-1.1.20-r4[musl=1.1.20-r4]
satisfies: musl-utils-1.1.20-r4[so:libc.musl-x86_64.so.1]
libbsd-0.10.0-r0[musl>=1.1.16-r22]
libbsd-0.10.0-r0[so:libc.musl-x86_64.so.1]
我的Dockerfile是:
FROM node:11-alpine
WORKDIR /app
ADD temp /app
COPY package*.json /app/
RUN apk add --no-cache --update --repository http://dl-3.alpinelinux.org/alpine/edge/main --repository http://dl-3.alpinelinux.org/alpine/edge/community \
bash git gcc g++ python make \
cairo cairo-dev libjpeg-turbo-dev giflib-dev vips vips-dev fftw fftw-dev libc6-compat && \
mkdir -p /usr/src/app && \
npm install --production && \
apk del gcc g++ git make && \
rm -rf /var/cache/apk/*
COPY . /app
EXPOSE 3800
CMD ["npm", "start"]