it works ... somehow (?)
This commit is contained in:
@@ -1,16 +1,20 @@
|
|||||||
FROM python:3.12-slim
|
FROM eswardudi/python-ffmpeg:3.13.3
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
COPY server/py/fastapi_server/requirements.txt ./
|
COPY server/py/fastapi_server/requirements_prod.txt ./
|
||||||
RUN pip install --no-cache-dir r requirements.txt
|
RUN pip install --no-cache-dir -r requirements_prod.txt
|
||||||
|
|
||||||
# This one is necessary for the server
|
# This one is necessary for the server
|
||||||
RUN apt install ffmpeg -y
|
#RUN apt update && apt install ffmpeg -y
|
||||||
|
|
||||||
COPY server/py/fastapi_server/ ./
|
#COPY server/py/fastapi_server/ ./
|
||||||
|
COPY ./server/py/fastapi_server/*.py ./
|
||||||
|
|
||||||
ENV PORT=3000
|
ENV PORT=8000
|
||||||
ENV HOST=0.0.0.0
|
ENV HOST=0.0.0.0
|
||||||
|
ENV DOWNLOAD_FOLDER=/tmp/downloads
|
||||||
|
|
||||||
CMD ["fastapi","run","main.py"]
|
VOLUME ["/tmp/downloads"]
|
||||||
|
|
||||||
|
CMD ["python3", "main.py"]
|
||||||
|
|||||||
@@ -1,6 +1,8 @@
|
|||||||
FROM node:22-alpine AS build
|
FROM node:22-alpine AS build
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
|
RUN sysctl -w net.ipv6.conf.all.disable_ipv6=1 || true
|
||||||
|
|
||||||
RUN corepack enable
|
RUN corepack enable
|
||||||
|
|
||||||
COPY . /app/
|
COPY . /app/
|
||||||
@@ -10,14 +12,20 @@ RUN pnpm i
|
|||||||
RUN pnpm build
|
RUN pnpm build
|
||||||
|
|
||||||
FROM node:22-alpine
|
FROM node:22-alpine
|
||||||
|
WORKDIR /app
|
||||||
|
|
||||||
# Only `.output` folder is needed from the build stage
|
# Only `.output` folder is needed from the build stage
|
||||||
COPY --from=build /app/.output/ ./
|
COPY --from=build /app/.output/ ./
|
||||||
|
|
||||||
# Change the port and host
|
# Change the port and host
|
||||||
ENV PORT=80
|
ENV PORT=3000
|
||||||
ENV HOST=0.0.0.0
|
ENV HOST=0.0.0.0
|
||||||
|
|
||||||
EXPOSE 80
|
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"]
|
CMD ["node", "/app/server/index.mjs"]
|
||||||
@@ -1,3 +1,34 @@
|
|||||||
|
volumes:
|
||||||
|
music_downloads: {}
|
||||||
|
|
||||||
|
networks:
|
||||||
|
api_nuxt:
|
||||||
|
driver: "bridge"
|
||||||
services:
|
services:
|
||||||
|
fastapi:
|
||||||
|
build:
|
||||||
|
context: .
|
||||||
|
dockerfile: Dockerfile.fastapi
|
||||||
|
networks:
|
||||||
|
- api_nuxt
|
||||||
|
volumes:
|
||||||
|
- music_downloads:/tmp/downloads
|
||||||
|
|
||||||
|
nuxt:
|
||||||
|
#build:
|
||||||
|
# context: .
|
||||||
|
# dockerfile: Dockerfile.nuxt
|
||||||
|
image: nuxtjs-launcher
|
||||||
|
networks:
|
||||||
|
- api_nuxt
|
||||||
|
ports:
|
||||||
|
- "64002:3030" # just for the admin GUI
|
||||||
|
- "6903:3000"
|
||||||
|
environment:
|
||||||
|
- FASTAPI_URL=http://fastapi:8000
|
||||||
|
- DOWNLOAD_FOLDER=/tmp/downloads
|
||||||
|
volumes:
|
||||||
|
- music_downloads:/tmp/downloads
|
||||||
|
- ./:/app
|
||||||
|
|
||||||
|
|
||||||
Reference in New Issue
Block a user