Skip to content

Commit

Permalink
fix: dockerfile missing dependency (#137)
Browse files Browse the repository at this point in the history
  • Loading branch information
alxhotel authored Aug 18, 2021
1 parent 30cae40 commit 2523b48
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
FROM node:slim

RUN apt-get update
RUN apt-get full-upgrade -y
RUN apt-get install -y libgtk2.0-0 libgconf-2-4 libasound2 libxtst6 libxss1 libnss3 xvfb git -y
RUN apt-get autoremove --purge -y
RUN rm -rf /var/lib/apt/lists/*
RUN npm i -g --unsafe webtorrent-hybrid
RUN mkdir -p /webtorrent
RUN apt-get update && \
apt-get full-upgrade -y && \
apt-get install -y libgtk2.0-0 libgconf-2-4 libasound2 libxtst6 libxss1 libnss3 xvfb git -y && \
apt-get autoremove --purge -y && \
rm -rf /var/lib/apt/lists/* && \
npm i -g node-pre-gyp

RUN npm i -g webtorrent-hybrid && \
mkdir -p /webtorrent

EXPOSE 8000
WORKDIR /webtorrent
Expand Down

0 comments on commit 2523b48

Please sign in to comment.