Initial commit
This commit is contained in:
24
discord-bot/Dockerfile
Normal file
24
discord-bot/Dockerfile
Normal file
@@ -0,0 +1,24 @@
|
||||
FROM node:20 as build-stage
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY client/package.json client/package-lock.json ./
|
||||
RUN npm install
|
||||
|
||||
COPY client/ ./
|
||||
RUN npm run build
|
||||
|
||||
FROM python:3.10
|
||||
RUN apt-get update && apt-get install -y ffmpeg
|
||||
COPY requirements.txt requirements.txt
|
||||
RUN pip install -r requirements.txt
|
||||
|
||||
COPY src src
|
||||
COPY main.py main.py
|
||||
RUN mkdir songs
|
||||
|
||||
RUN mkdir client
|
||||
COPY --from=build-stage /app/dist /client
|
||||
|
||||
ENTRYPOINT [ "fastapi", "run", "main.py", "--port", "5677" ]
|
||||
|
||||
Reference in New Issue
Block a user