-
Notifications
You must be signed in to change notification settings - Fork 134
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #105 from EdJoPaTo/dockerfile
Improve Dockerfile and provide some usage information
- Loading branch information
Showing
3 changed files
with
53 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
.*ignore | ||
.git | ||
*.md | ||
Dockerfile |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,22 @@ | ||
#Download base image debian | ||
FROM node | ||
FROM docker.io/library/node:14-bullseye | ||
|
||
# Create app directory | ||
WORKDIR /root | ||
# LABEL about the custom image | ||
LABEL maintainer="[email protected]" | ||
LABEL version="0.1" | ||
LABEL description="This is custom Docker Image for" | ||
|
||
#Update Software Repository | ||
RUN mkdir -p /home/node/app/node_modules && chown -R node:node /home/node/app | ||
#RUN apt-get -y curl | ||
RUN curl -sS -o - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add | ||
RUN echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" > /etc/apt/sources.list.d/google-chrome.list | ||
RUN apt-get -y update | ||
RUN apt-get -y install google-chrome-stable | ||
RUN apt-get -y install software-properties-common | ||
RUN add-apt-repository ppa:jonathonf/ffmpeg-4 | ||
#RUN apt-get -y update | ||
RUN apt-get -y install ffmpeg | ||
RUN apt -y install xvfb | ||
RUN git clone https://github.com/jibon57/bbb-recorder | ||
RUN cd bbb-recorder && npm install --ignore-scripts | ||
WORKDIR /root/bbb-recorder | ||
RUN apt-get -y update \ | ||
&& apt-get upgrade -y \ | ||
&& apt-get install -y \ | ||
ffmpeg \ | ||
google-chrome-stable \ | ||
xvfb \ | ||
&& apt-get clean \ | ||
&& rm -rf /var/lib/apt/lists/* /var/cache/* /var/log/* | ||
|
||
RUN node --version && npm --version | ||
|
||
WORKDIR /app | ||
VOLUME /output | ||
RUN echo "copyToPath=/output" > .env | ||
|
||
COPY package.json ./ | ||
RUN npm install --ignore-scripts | ||
COPY . ./ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters