Docker files

Completes first pass at dockerization
This commit is contained in:
Colby Gutierrez-Kraybill 2018-03-23 15:50:01 -04:00
parent 878116f949
commit 70468321c5
2 changed files with 21 additions and 0 deletions

10
Dockerfile Normal file
View file

@ -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

11
docker_entrypoint.sh Executable file
View file

@ -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 "$@"