27 строки
687 B
Plaintext
27 строки
687 B
Plaintext
FROM node:4.8.2-alpine
|
|
|
|
RUN addgroup -g 10001 app && \
|
|
adduser -D -G app -h /app -u 10001 app
|
|
WORKDIR /app
|
|
|
|
# S3 bucket in Cloud Services prod IAM
|
|
ADD https://s3.amazonaws.com/dumb-init-dist/v1.2.0/dumb-init_1.2.0_amd64 /usr/local/bin/dumb-init
|
|
RUN chmod +x /usr/local/bin/dumb-init
|
|
ENTRYPOINT ["/usr/local/bin/dumb-init", "--"]
|
|
|
|
RUN apk add --no-cache git
|
|
|
|
COPY .bowerrc .bowerrc
|
|
COPY bower.json bower.json
|
|
COPY npm-shrinkwrap.json npm-shrinkwrap.json
|
|
COPY package.json package.json
|
|
COPY scripts/download_l10n.sh scripts/download_l10n.sh
|
|
|
|
RUN npm install --production --unsafe-perm && rm -rf ~/.cache ~/.npm /tmp/*
|
|
|
|
COPY . /app
|
|
|
|
RUN npm run build-production --unsafe-perm
|
|
|
|
USER app
|