2016-11-08 23:04:21 +03:00
|
|
|
FROM node:4.6.2
|
2016-05-26 18:31:13 +03:00
|
|
|
|
|
|
|
RUN groupadd --gid 10001 app && \
|
|
|
|
useradd --uid 10001 --gid 10001 --home /app --create-home app
|
|
|
|
|
|
|
|
RUN apt-get update && \
|
|
|
|
DEBIAN_FRONTEND=noninteractive apt-get -y install graphicsmagick && \
|
|
|
|
apt-get clean
|
|
|
|
|
|
|
|
USER app
|
|
|
|
|
2016-05-26 19:35:56 +03:00
|
|
|
WORKDIR /app
|
|
|
|
|
2016-05-26 19:22:01 +03:00
|
|
|
COPY scripts/check_gm.sh scripts/check_gm.sh
|
2016-05-26 18:31:13 +03:00
|
|
|
COPY package.json package.json
|
|
|
|
|
|
|
|
RUN npm install && \
|
|
|
|
npm cache clear && \
|
|
|
|
rm -rf ~app/.node-gyp && \
|
|
|
|
rm -rf ~app/.npm
|
|
|
|
|
|
|
|
COPY . /app
|
|
|
|
|
2016-07-21 20:36:14 +03:00
|
|
|
ENTRYPOINT ["/app/scripts/docker-exec.sh"]
|
|
|
|
CMD ["test"]
|