Pratama commited on
Update Dockerfile
Browse files- Dockerfile +8 -2
Dockerfile
CHANGED
|
@@ -7,9 +7,15 @@ ENV PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD 1
|
|
| 7 |
# Specify work directory
|
| 8 |
WORKDIR /app
|
| 9 |
|
| 10 |
-
#
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 11 |
RUN --mount=type=secret,id=GITHUB_REPO,required=true \
|
| 12 |
-
git clone $(cat /run/secrets/GITHUB_REPO) .
|
| 13 |
|
| 14 |
# Install dependencies
|
| 15 |
RUN npm install
|
|
|
|
| 7 |
# Specify work directory
|
| 8 |
WORKDIR /app
|
| 9 |
|
| 10 |
+
# Install FFmpeg
|
| 11 |
+
RUN apt-get update && apt-get install -y ffmpeg
|
| 12 |
+
|
| 13 |
+
# Force no cache with build arg
|
| 14 |
+
ARG CACHEBUST=1
|
| 15 |
+
|
| 16 |
+
# Clone repo with authentication, shallow clone
|
| 17 |
RUN --mount=type=secret,id=GITHUB_REPO,required=true \
|
| 18 |
+
git clone --depth=1 $(cat /run/secrets/GITHUB_REPO) .
|
| 19 |
|
| 20 |
# Install dependencies
|
| 21 |
RUN npm install
|