-
Notifications
You must be signed in to change notification settings - Fork 616
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1324 from DemocracyOS/update/docker
Update dockerfiles
- Loading branch information
Showing
2 changed files
with
32 additions
and
5 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,21 @@ | ||
FROM node:argon | ||
|
||
MAINTAINER Guido Vilariño <guido@democracyos.org> | ||
|
||
RUN apt-get update && \ | ||
apt-get install -y libkrb5-dev && \ | ||
npm config set python python2.7 | ||
RUN npm config set python python2.7 | ||
|
||
COPY package.json /usr/src/ | ||
COPY ["package.json", "/usr/src/"] | ||
|
||
WORKDIR /usr/src | ||
|
||
RUN npm install --quiet --unsafe-perm | ||
RUN npm install --quiet --production | ||
|
||
RUN npm install --quiet --only=development | ||
|
||
COPY [".", "/usr/src/"] | ||
|
||
EXPOSE 3000 | ||
|
||
ENV NODE_PATH=. | ||
|
||
CMD ["./node_modules/.bin/gulp", "bws"] |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
FROM node:argon | ||
|
||
MAINTAINER Guido Vilariño <guido@democracyos.org> | ||
|
||
RUN npm config set python python2.7 | ||
|
||
COPY ["package.json", "/usr/src/"] | ||
|
||
WORKDIR /usr/src | ||
|
||
RUN npm install --quiet --production | ||
|
||
COPY [".", "/usr/src/"] | ||
|
||
RUN npm run build -- --minify | ||
|
||
ENV NODE_ENV=production \ | ||
NODE_PATH=. | ||
|
||
EXPOSE 3000 | ||
|
||
CMD ["node", "index.js"] |