mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2024-11-22 15:17:53 -05:00
Docker files
Completes first pass at dockerization
This commit is contained in:
parent
878116f949
commit
70468321c5
2 changed files with 21 additions and 0 deletions
10
Dockerfile
Normal file
10
Dockerfile
Normal 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
11
docker_entrypoint.sh
Executable 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 "$@"
|
Loading…
Reference in a new issue