Sign inSign up

ceramicwhite/pairdrop

By ceramicwhite

Updated almost 3 years ago

Image
0

1.1K

ceramicwhite/pairdrop repository overview

# syntax=docker/dockerfile:1.5-labs

ARG NODE_VERSION=lts-alpine
ARG GIT_TAG=${GIT_TAG:-master}

################################################################################
# Use node image for base image for all stages.
FROM node:${NODE_VERSION} as base

ENV HOME=/app

WORKDIR /app

RUN apk update && \
    apk upgrade && \
    apk add --no-cache bash

SHELL ["/bin/bash", "-o", "pipefail", "-c"]

################################################################################
# Create a stage for pulling upstream deps code.
FROM base as deps

ARG GIT_TAG

ADD https://github.com/schlagmichdoch/PairDrop.git#${GIT_TAG} .

RUN npm i -omit=dev

################################################################################
# Create a stage for running the application.
FROM base as final

WORKDIR /app

COPY --from=deps /app/node_modules ./node_modules
COPY --from=deps /app/public ./public
COPY --from=deps /app/package.json /app/index.js /app/README.md /app/LICENSE /app/turnserver_example.conf /app/rtc_config_example.json ./

CMD ["node", "index.js", "--rate-limit", "--auto-restart"]

Tag summary

Content type

Image

Digest

sha256:ed30218c7

Size

60.2 MB

Last updated

almost 3 years ago

docker pull ceramicwhite/pairdrop