This file contains hidden or 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
FROM node:latest | |
RUN npm install -g sails grunt npm-check-updates | |
COPY ./package.json /package.json | |
RUN npm install | |
RUN npm install --save sails-postgresql@beta | |
COPY ./compose/sails/entrypoint.sh /entrypoint.sh | |
RUN sed -i 's/\r//' /entrypoint.sh |
This file contains hidden or 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
#!/bin/bash | |
set -e | |
cmd="$@" | |
export REDIS_URL=redis://redis:6379 | |
# the official postgres image uses 'postgres' as default user if not set explictly. | |
if [ -z "$POSTGRES_USER" ]; then | |
export POSTGRES_USER=postgres | |
fi |
OlderNewer