Sign inSign up

zcloudws/meteor-build

By zcloudws

•Updated 1 day ago

Image
0

8.4K

zcloudws/meteor-build repository overview

⁠Meteor for build apps inside container

⁠Usage example

# Ignoring unnecessary files to optimize the build
.git/
.meteor/local/
node_modules/

⁠Dockerfile to build app and create image with NodeJS runtime

# 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"]

⁠User information:
  • User: zcloud
  • Group: zcloud
  • UID: 65123
  • GID: 65123

by Quave⁠

Tag summary

Content type

Image

Digest

sha256:0be92a2c2…

Size

751.3 MB

Last updated

1 day ago

docker pull zcloudws/meteor-build:3.5.4