This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Dockerfile for DEPLOYED version | |
# (dev version uses assetsagacity/meteor-do), | |
# with bundled application code embedded in the image. | |
# | |
# It must be run with **bundled app folder** as the context, not project root. | |
# we need a first container to install project dependencies, | |
# as these require compiler tools and we do not want to pollute final image with them | |
# (and we can't use livedev for that as it is NOT alpine-based...) | |
FROM mhart/alpine-node:8 AS alpine-builder |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# | |
# Builds the docker image used in deployments. | |
# - embedding most files inside the image | |
# - turning on compilation and optimization | |
# - this requires the dev image as a tool (will pull it if not already available) | |
# | |
# This WILL wipe out any previous build and replace with a new one | |
# fetch build info to embed in the image |