Files
yt2mp3/Dockerfile.nuxt
2026-01-16 20:55:05 +00:00

31 lines
498 B
Docker

FROM node:22-alpine AS build
WORKDIR /app
RUN sysctl -w net.ipv6.conf.all.disable_ipv6=1 || true
RUN corepack enable
COPY . /app/
RUN pnpm i
RUN pnpm build
FROM node:22-alpine
WORKDIR /app
# Only `.output` folder is needed from the build stage
COPY --from=build /app/.output/ ./
# Change the port and host
ENV PORT=3000
ENV HOST=0.0.0.0
EXPOSE 3000
ENV DOWNLOAD_FOLDER=/tmp/downloads
VOLUME ["/tmp/downloads"]
ENV FASTAPI_URL=http://127.0.0.1:8000
CMD ["node", "/app/server/index.mjs"]