Open shawnguo2 opened 6 years ago
I'm not the image maintainer here, but IMO it'd be better to figure out what packages are necessary and install just those -- the difference between node:8.11-slim
and node:8.11
is pretty significant:
$ docker images 'node:8.11*'
REPOSITORY TAG IMAGE ID CREATED SIZE
node 8.11-slim 1d5555ef5229 3 weeks ago 182MB
node 8.11 ed145ef978c4 3 weeks ago 673MB
I imagine the necessary build dependencies could probably even be added and subsequently removed in the same RUN
line to save even more space on the arm64v8
build (to ensure it's got rough size parity with amd64
). I think the hard part is going to be determining which architectures we need to install the build dependencies on, but perhaps that'd be fine to be a hard-coded list for now?
Hi,
I'm trying to do an arm64 native build of rocket.chat docker image. The problem I'm facing is that there is a prebuilt Fibers package for x64, but it has to be built from source on arm64. However, the build fails with -slim node image from which some tools like python are missing.
x64 architecture
arm64 architecture
It can be successfully built with changing base image from node:8.9-slim to node:8.9 in Dockerfile.
But is it the correct fix? Thanks.
Shawn