Public Repository

Last pushed: 2 years ago
Short Description
Short description is empty for this repo.
Full Description

Dockerfile

FROM buildpack-deps
MAINTAINER Kyle Smith <knksmith57@gmail.com>

RUN apt-get update && apt-get install -y \
    ca-certificates \
    curl

# verify gpg and sha256: http://nodejs.org/dist/v0.10.31/SHASUMS256.txt.asc
# gpg: aka "Timothy J Fontaine (Work) <tj.fontaine@joyent.com>"
RUN gpg --keyserver pgp.mit.edu --recv-keys 7937DFD2AB06298B2293C3187D33FF9D0246406D

ENV NODE_VERSION 0.10.33
ENV NPM_VERSION 2.1.6

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 mkdir -p /opt/sinopia/storage
WORKDIR /opt/sinopia
RUN npm install node-gyp js-yaml
RUN npm install knksmith57/sinopia#fix-scoped-packages

ADD /config_gen.js /opt/sinopia/config_gen.js
ADD /start.sh /opt/sinopia/start.sh


CMD ["/opt/sinopia/start.sh"]

EXPOSE 4873
VOLUME /opt/sinopia
Docker Pull Command
Owner
knksmith57