-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
37 lines (30 loc) · 893 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# Build a docker container containing the sails framework
FROM node:latest
MAINTAINER Rémi GATTAZ <[email protected]>
# Add the application in the image
ADD . /srv/sails
# Define working directory.
WORKDIR /srv/sails
# Install all dependencies
RUN npm prune && npm install --quiet
# Define mountable directories.
VOLUME ["/srv/sails"]
# Expose sails default port
EXPOSE 1337
# Envrionment
ENV SAILS_SECRET="c9693b2d5572ffd96a79cae6a8453d57" \
MONGO_HOST="mongodb" \
MONGO_PORT="27017" \
MONGO_DB="packebian" \
MONGO_USER="packebian" \
MONGO_PASS="packebian123" \
AUTH0_SECRET="secret" \
AUTH0_ALGO="HS256" \
AUTH0_ENDPOINT="https://packebian.eu.auth0.com" \
JWT_SECRET="secret" \
JWT_LIFE="3600" \
JWT_ALGO="HS256" \
JWT_ISSUER="packebian.com" \
JWT_AUDIENCE="packebian.com"
# Start application
CMD NODE_ENV=production npm start