Last active
August 29, 2015 14:11
-
-
Save michielbdejong/bdb0b4fff15398917bd7 to your computer and use it in GitHub Desktop.
Dockerfile that tries to build mozilla/fxa-content-server
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
FROM ubuntu | |
RUN apt-get update \ | |
&& apt-get install -yq \ | |
curl \ | |
g++ \ | |
git \ | |
libgmp3-dev \ | |
make \ | |
python \ | |
&& rm -rf /var/lib/apt/lists/* | |
###### | |
# Node | |
###### | |
# verify gpg and sha256: http://nodejs.org/dist/v0.10.31/SHASUMS256.txt.asc | |
# gpg: aka "Timothy J Fontaine (Work) <[email protected]>" | |
RUN gpg --keyserver pgp.mit.edu --recv-keys 7937DFD2AB06298B2293C3187D33FF9D0246406D | |
ENV NODE_VERSION 0.10.32 | |
ENV NPM_VERSION 2.1.4 | |
RUN curl -SLO "http://nodejs.org/dist/v$NODE_VERSION/node-v$NODE_VERSION-linux-x64.tar.gz" \ | |
&& curl -SLO "http://nodejs.org/dist/v$NODE_VERSION/SHASUMS256.txt.asc" \ | |
&& gpg --verify SHASUMS256.txt.asc \ | |
&& grep " node-v$NODE_VERSION-linux-x64.tar.gz\$" SHASUMS256.txt.asc | sha256sum -c - \ | |
&& tar -xzf "node-v$NODE_VERSION-linux-x64.tar.gz" -C /usr/local --strip-components=1 \ | |
&& rm "node-v$NODE_VERSION-linux-x64.tar.gz" SHASUMS256.txt.asc \ | |
&& npm install -g npm@"$NPM_VERSION" \ | |
&& npm cache clear | |
RUN npm install -g grunt-cli | |
RUN git clone https://github.com/mozilla/fxa-content-server | |
RUN cp fxa-content-server/server/config/local.json-dist fxa-content-server/server/config/local.json | |
RUN cd fxa-content-server/ && npm install | |
EXPOSE 3030 | |
EXPOSE 3080 | |
CMD cd fxa-content-server/ && grunt server |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment