mirror of
https://github.com/darksaid98/cadence-discord-bot.git
synced 2026-12-01 14:38:48 +00:00
fix: change Dockerfile base image to fix mediaplex not working
This commit is contained in:
1 parent
5e591c739f
commit
3360782d2e
1 file changed
+5
-5
+5
-5
@@ -2,12 +2,12 @@
|
|||||||
# Dockerfile for https://hub.docker.com/r/mariusbegby/cadence/
|
# Dockerfile for https://hub.docker.com/r/mariusbegby/cadence/
|
||||||
# Images automatically published: docker pull mariusbegby/cadence
|
# Images automatically published: docker pull mariusbegby/cadence
|
||||||
|
|
||||||
# Using Node 18.16 (LTS) on Alpine base
|
# Using Node 18.16 (LTS) on bookworm-slim base
|
||||||
ARG NODE_VERSION=18.16
|
ARG NODE_VERSION=18.16
|
||||||
FROM node:${NODE_VERSION}-alpine
|
FROM node:${NODE_VERSION}-bookworm-slim
|
||||||
|
|
||||||
# Install npm build dependencies and ffmpeg
|
# Install npm build dependencies and ffmpeg
|
||||||
RUN apk add --no-cache python3 make build-base ffmpeg
|
RUN apt-get update && apt-get install -y python3 make build-essential ffmpeg
|
||||||
|
|
||||||
# Set work directory for subsequent commands
|
# Set work directory for subsequent commands
|
||||||
WORKDIR /cadence-discord-bot
|
WORKDIR /cadence-discord-bot
|
||||||
@@ -27,8 +27,8 @@ RUN npm run build && \
|
|||||||
npm ci --omit=dev
|
npm ci --omit=dev
|
||||||
|
|
||||||
# Cleanup of unneeded packages, apk cache, and TypeScript source files
|
# Cleanup of unneeded packages, apk cache, and TypeScript source files
|
||||||
RUN apk del python3 make build-base && \
|
RUN apt remove -y python3 make build-essential && \
|
||||||
rm -rf /var/cache/apk/* /tmp/* ./src/
|
rm -rf /var/cache/apt/* /tmp/* ./src/
|
||||||
|
|
||||||
# Startup command to run the bot after deploying slash commands
|
# Startup command to run the bot after deploying slash commands
|
||||||
CMD /bin/sh -c "npm run deploy && npm run start"
|
CMD /bin/sh -c "npm run deploy && npm run start"
|
||||||
Reference in new issue
Block a user