mirror of
https://github.com/aydenjahola/discord-multipurpose-bot.git
synced 2025-09-21 06:41:35 +01:00
update Dockerfile
This commit is contained in:
parent
55f0701c65
commit
565c9fb513
1 changed files with 9 additions and 14 deletions
23
Dockerfile
23
Dockerfile
|
@ -1,22 +1,17 @@
|
||||||
FROM jrottenberg/ffmpeg:8-alpine AS ffmpeg
|
FROM node:20-slim
|
||||||
|
|
||||||
FROM node:current-alpine
|
WORKDIR /app
|
||||||
|
|
||||||
COPY --from=ffmpeg /usr/local/bin/ffmpeg /usr/local/bin/
|
RUN apt-get update && \
|
||||||
COPY --from=ffmpeg /usr/local/bin/ffprobe /usr/local/bin/
|
apt-get install -y ffmpeg && \
|
||||||
|
rm -rf /var/lib/apt/lists/*
|
||||||
RUN apk add --no-cache \
|
|
||||||
python3 \
|
|
||||||
make \
|
|
||||||
g++ \
|
|
||||||
&& npm install -g npm@latest
|
|
||||||
|
|
||||||
WORKDIR /usr/src/app
|
|
||||||
|
|
||||||
COPY package*.json ./
|
COPY package*.json ./
|
||||||
|
|
||||||
RUN npm install
|
RUN npm install --production
|
||||||
|
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
CMD ["node", "."]
|
ENV NODE_ENV=production
|
||||||
|
|
||||||
|
CMD ["node", "index.js"]
|
||||||
|
|
Loading…
Reference in a new issue