Spaces:
Sleeping
Sleeping
chore: simplify Dockerfile by removing unnecessary dependencies
Browse filesRemove apt packages that aren't needed for running Next.js:
- Graphics libraries (libgl1, libegl) - not needed for web apps
- Build tools (build-essential, cmake) - app is pre-built
- ffmpeg - videos are served client-side, no server processing
- git, wget - files copied directly in build
The bun base image has everything needed to run the Next.js app.
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
- Dockerfile +0 -13
Dockerfile
CHANGED
|
@@ -1,18 +1,5 @@
|
|
| 1 |
FROM oven/bun:1 AS base
|
| 2 |
|
| 3 |
-
# Install apt dependencies
|
| 4 |
-
RUN apt-get update && apt-get install -y --no-install-recommends \
|
| 5 |
-
build-essential \
|
| 6 |
-
cmake \
|
| 7 |
-
git \
|
| 8 |
-
wget \
|
| 9 |
-
ca-certificates \
|
| 10 |
-
libglib2.0-0 \
|
| 11 |
-
libgl1-mesa-glx \
|
| 12 |
-
libegl1-mesa \
|
| 13 |
-
ffmpeg \
|
| 14 |
-
&& apt-get clean && rm -rf /var/lib/apt/lists/*
|
| 15 |
-
|
| 16 |
# Set working directory
|
| 17 |
WORKDIR /app
|
| 18 |
|
|
|
|
| 1 |
FROM oven/bun:1 AS base
|
| 2 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3 |
# Set working directory
|
| 4 |
WORKDIR /app
|
| 5 |
|