Skip to content

Instantly share code, notes, and snippets.

View xavierpriour's full-sized avatar

Xavier Priour xavierpriour

View GitHub Profile
@xavierpriour
xavierpriour / Dockerfile
Created May 7, 2018 15:03
meteor-in-docker production - Dockerfile
# 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
@xavierpriour
xavierpriour / build.sh
Created May 7, 2018 15:01
meteor-in-docker production - build script
#!/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