【发布时间】:2021-06-25 06:16:17
【问题描述】:
最新官方parse-server docker image根据这个post不再包含S3 File Adapter。所以我正在创建一个新图像。我的 Dockerfile -
FROM parseplatform/parse-server
USER root
WORKDIR /parse-server
RUN npm install --save @parse/s3-files-adapter
USER node
构建后 -
docker build -t my_parse .
生成的 docker 图像是原始图像大小的两倍。
# docker images -a
REPOSITORY TAG IMAGE ID CREATED SIZE
my_parse latest 763968cef685 21 seconds ago 565MB
<none> <none> 1e92933e370e 23 seconds ago 565MB
<none> <none> 8778c6ebc0f7 About a minute ago 247MB
<none> <none> 46a2805beb06 About a minute ago 247MB
parseplatform/parse-server latest 0492a55f2c59 24 hours ago 247MB
如何减小 my_parse 图像的大小并消除 none 图像?
【问题讨论】:
标签: docker npm-install parse-server