fxa-profile-server/Dockerfile-build

26 строки
504 B
Plaintext
Исходник Обычный вид История

FROM node:4.6.2
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
WORKDIR /app
COPY scripts/check_gm.sh scripts/check_gm.sh
COPY package.json package.json
RUN npm install && \
npm cache clear && \
rm -rf ~app/.node-gyp && \
rm -rf ~app/.npm
COPY . /app
ENTRYPOINT ["/app/scripts/docker-exec.sh"]
CMD ["test"]