1
0
Fork 0
mirror of https://github.com/Luzifer/browserphone.git synced 2024-11-08 13:50:05 +00:00
browserphone/Dockerfile
2019-05-30 13:30:31 +02:00

31 lines
920 B
Docker

FROM node:alpine as builder
COPY . /src
WORKDIR /src
RUN set -ex \
&& npm ci \
&& npm run build
RUN set -ex \
&& apk add curl \
&& curl -sSfLo /tmp/dumb-init "https://github.com/Yelp/dumb-init/releases/download/v1.2.2/dumb-init_1.2.2_amd64" \
&& chmod +x /tmp/dumb-init \
&& curl -sSfL "https://github.com/Luzifer/korvike/releases/download/v0.5.0/korvike_linux_amd64.tar.gz" | tar -xz -C /tmp
FROM python:3-alpine
LABEL maintainer Knut Ahlers <knut@ahlers.me>
COPY docker-entrypoint.sh /usr/local/bin/docker-entrypoint.sh
COPY --from=builder /tmp/dumb-init /usr/local/bin/dumb-init
COPY --from=builder /tmp/korvike_linux_amd64 /usr/local/bin/korvike
COPY --from=builder /src/dist /usr/local/share/browserphone/dist
RUN set -ex \
&& apk --no-cache add bash
EXPOSE 3000/tcp
WORKDIR "/usr/local/share/browserphone"
CMD ["/usr/local/bin/docker-entrypoint.sh"]