browserid-verifier/Dockerfile

24 строки
572 B
Docker
Исходник Обычный вид История

FROM node:10-alpine
2015-08-27 20:42:05 +03:00
# add a non-privileged user for installing and running
# the application
RUN addgroup -g 10001 app && \
adduser -D -G app -h /app -u 10001 app
WORKDIR /app
# Install node requirements and clean up temporary files
COPY package.json package.json
RUN apk add --update build-base ca-certificates git python gmp-dev && \
npm --loglevel warn install && \
npm cache clear --force && \
apk del --purge build-base gcc git python && \
rm -rf ~app/.node-gyp && \
rm -rf ~app/.npm
2015-08-27 20:42:05 +03:00
COPY . /app
USER app
ENTRYPOINT ["npm"]
CMD ["start"]