Docker tweaks
This commit is contained in:
parent
a3b617233a
commit
95dc02aed5
3 changed files with 3 additions and 1 deletions
|
@ -51,6 +51,7 @@ COPY --chown=node:node ./package.json package.json
|
|||
COPY --chown=node:node ./package-lock.json package-lock.json
|
||||
RUN npm install
|
||||
COPY . .
|
||||
RUN rm .env
|
||||
RUN npm run build
|
||||
|
||||
USER esmBot
|
||||
|
|
|
@ -11,6 +11,7 @@ services:
|
|||
- ./logs:/home/esmBot/.internal/logs
|
||||
- ./bot-help:/home/esmBot/help
|
||||
- ./bot-temp:/home/esmBot/temp
|
||||
- ./servers.json:/home/esmBot/.internal/servers.json
|
||||
env_file:
|
||||
- .env
|
||||
environment:
|
||||
|
|
|
@ -70,7 +70,7 @@ const getImage = async (image, image2, video, extraReturnTypes, gifv = false) =>
|
|||
} else if (giphyMediaURLs.includes(host)) {
|
||||
payload.path = `https://media0.giphy.com/media/${image2.split("/")[4]}/giphy.gif`;
|
||||
} 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");
|
||||
} else if (gfycatURLs.includes(host)) {
|
||||
// iirc Gfycat also seems to sometimes make GIFs static
|
||||
|
|
Loading…
Reference in a new issue