Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ services:
- "8300:8300"
volumes:
- ./ffmpeg-frontend:/app
- ./ffmpeg-frontend:/app/node_modules
- /app/node_modules
environment:
- NODE_ENV=development
depends_on:
Expand Down
23 changes: 14 additions & 9 deletions ffmpeg-frontend/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,17 +1,22 @@
FROM node:20-alpine

# Set workdir
WORKDIR /app

# Copy only package files first for better cache use
COPY package*.json pnpm-lock.yaml* ./
RUN npm install -g pnpm && pnpm install
# install pnpm
RUN npm install -g pnpm

# Copy all source code
# copy lockfiles
COPY package.json pnpm-lock.yaml ./

# install deps
RUN pnpm install --frozen-lockfile

# copy source
COPY . .

# Expose API and Vite ports
EXPOSE 8080 8300
# expose ports
EXPOSE 8080
EXPOSE 8300

# Default: run both frontend (Vite) and backend (Express)
CMD ["pnpm", "run", "dev"]
# run dev servers
CMD ["pnpm", "dev"]
Loading