Skip to content

Commit 19a0ef3

Browse files
committed
Dockerized the application
1 parent 09f2554 commit 19a0ef3

5 files changed

Lines changed: 38 additions & 11 deletions

File tree

.dockerignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
*.gif
2+
*.md

.gitattributes

Lines changed: 0 additions & 2 deletions
This file was deleted.

.gitignore

Lines changed: 0 additions & 9 deletions
This file was deleted.

Dockerfile

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
FROM ubuntu:22.04
2+
3+
# Set the working directory
4+
WORKDIR /home/
5+
6+
7+
# Non-interactive mode for apt-get
8+
ARG DEBIAN_FRONTEND=noninteractive
9+
10+
# Install dependencies
11+
RUN apt-get update
12+
RUN apt-get install -y build-essential
13+
14+
# ffmpeg , ffprobe
15+
RUN apt-get install -y ffmpeg
16+
17+
COPY . /
18+
19+
RUN cc /src/*.c -lm -O3 -o /file2video
20+
21+
# Entry point is the executable, file2video. All args are passed to the executable
22+
ENTRYPOINT [ "/file2video" ]

README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,4 +107,18 @@ yt-dlp -f 247 -o isg-video.webm 'https://www.youtube.com/watch?v=8I4fd_Sap-g'
107107
# Encode file.bin and merge it with video.mp4 to generate
108108
# video-out.mp4
109109
./embed.sh file.bin video.mp4 video-out.mp4
110+
```
111+
112+
## Docker
113+
114+
A Dockerfile is provided for building and running bin2video in a container. To build the image:
115+
116+
```bash
117+
docker build -t bin2video .
118+
```
119+
120+
To run bin2video in a container:
121+
122+
```bash
123+
docker run -it --rm bin2video [options]
110124
```

0 commit comments

Comments
 (0)