From 70468321c5ed1737fa7baa979205b088cfa5fce3 Mon Sep 17 00:00:00 2001 From: Colby Gutierrez-Kraybill Date: Fri, 23 Mar 2018 15:50:01 -0400 Subject: [PATCH] Docker files Completes first pass at dockerization --- Dockerfile | 10 ++++++++++ docker_entrypoint.sh | 11 +++++++++++ 2 files changed, 21 insertions(+) create mode 100644 Dockerfile create mode 100755 docker_entrypoint.sh diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 000000000..81b021d64 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,10 @@ +FROM node:6 + +RUN mkdir -p /var/app/current +WORKDIR /var/app/current +COPY . ./ +RUN rm -rf ./node_modules +RUN npm install + +EXPOSE 8333 + diff --git a/docker_entrypoint.sh b/docker_entrypoint.sh new file mode 100755 index 000000000..5e95584c3 --- /dev/null +++ b/docker_entrypoint.sh @@ -0,0 +1,11 @@ +#!/usr/bin/env bash + +echo "App Entrypoint" + +if [ ! -f /runtime/.translations ]; then + echo "Generating intl/translations" + make translations + touch /runtime/.translations +fi + +exec "$@"