12345678910111213141516171819202122232425262728 |
- FROM node:8-alpine
- ARG SEND_VERSION=v2.5.4
- ENV UID=791 GID=791
- EXPOSE 1443
- COPY run.sh /usr/local/bin/run.sh
- COPY s6.d /etc/s6.d
- WORKDIR /send
- RUN set -xe \
- && apk add --no-cache -U su-exec redis s6 \
- && apk add --no-cache --virtual .build-deps wget tar ca-certificates openssl git \
- && git clone https://github.com/mozilla/send.git . \
- && git checkout tags/${SEND_VERSION} \
- && npm install \
- && npm run build \
- && rm -rf node_modules \
- && npm install --production \
- && npm cache clean --force \
- && rm -rf .git \
- && apk del .build-deps \
- && chmod +x -R /usr/local/bin/run.sh /etc/s6.d
- CMD ["run.sh"]
|