Docker tweaks

This commit is contained in:
Essem 2021-09-13 13:05:22 -05:00
parent a3b617233a
commit 95dc02aed5
No known key found for this signature in database
GPG key ID: 7D497397CC3A2A8C
3 changed files with 3 additions and 1 deletions

View file

@ -51,6 +51,7 @@ COPY --chown=node:node ./package.json package.json
COPY --chown=node:node ./package-lock.json package-lock.json COPY --chown=node:node ./package-lock.json package-lock.json
RUN npm install RUN npm install
COPY . . COPY . .
RUN rm .env
RUN npm run build RUN npm run build
USER esmBot USER esmBot

View file

@ -11,6 +11,7 @@ services:
- ./logs:/home/esmBot/.internal/logs - ./logs:/home/esmBot/.internal/logs
- ./bot-help:/home/esmBot/help - ./bot-help:/home/esmBot/help
- ./bot-temp:/home/esmBot/temp - ./bot-temp:/home/esmBot/temp
- ./servers.json:/home/esmBot/.internal/servers.json
env_file: env_file:
- .env - .env
environment: environment:

View file

@ -70,7 +70,7 @@ const getImage = async (image, image2, video, extraReturnTypes, gifv = false) =>
} else if (giphyMediaURLs.includes(host)) { } else if (giphyMediaURLs.includes(host)) {
payload.path = `https://media0.giphy.com/media/${image2.split("/")[4]}/giphy.gif`; payload.path = `https://media0.giphy.com/media/${image2.split("/")[4]}/giphy.gif`;
} else if (imgurURLs.includes(host)) { } else if (imgurURLs.includes(host)) {
// Seems that Tenor has a possibility of making GIFs static // Seems that Imgur has a possibility of making GIFs static
payload.path = image.replace(".mp4", ".gif"); payload.path = image.replace(".mp4", ".gif");
} else if (gfycatURLs.includes(host)) { } else if (gfycatURLs.includes(host)) {
// iirc Gfycat also seems to sometimes make GIFs static // iirc Gfycat also seems to sometimes make GIFs static