# Ignoring unnecessary files to optimize the build
.git/
.meteor/local/
node_modules/
# Build stage
FROM zcloudws/meteor-build:2.11.0 as builder
USER root
RUN mkdir -p /build/source && chown zcloud:zcloud -R /build
USER zcloud
COPY --chown=zcloud:zcloud . /build/source
RUN cd /build/source && \n meteor npm install && \n meteor build --directory ../app-build
# Clean image with builded app
FROM zcloudws/meteor-node-mongodb-runtime:2.11.0
COPY --from=builder /build/app-build/bundle /home/zcloud/app
RUN cd /home/zcloud/app/programs/server && npm install
WORKDIR /home/zcloud/app
# Entrypoint from image
ENTRYPOINT ["/scripts/startup.sh"]
by Quave
Content type
Image
Digest
sha256:96381b4e3…
Size
739.4 MB
Last updated
7 days ago
docker pull zcloudws/meteor-build:3.5.2