Sign inSign up

nmaggioni/dumpster

By nmaggioni

Updated about 6 years ago

A lightweight, self-hosted and API-based file upload server supporting YubiKey OTP authentication.

Image
2

3.1K

Dockerfile
FROM node:12-alpine

WORKDIR /usr/src/app
RUN chown node:node .

COPY package*.json bower.json .bowerrc ./
RUN apk add --no-cache --virtual .build-tools git && \
    apk add --no-cache tini && \
    npm ci --only=production && \
    echo '{ "allow_root": true }' > /root/.bowerrc && \
    npm run bower && \
    apk del .build-tools

COPY . .

EXPOSE 9980

ENTRYPOINT ["/sbin/tini", "--"]
CMD [ "node", "server.js" ]

USER node