forked from suchipi/link-fixer-discord-bot
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Dockerfile
22 lines (17 loc) · 907 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
FROM node:lts-alpine
LABEL org.opencontainers.image.title="LinkFix for Discord" \
org.opencontainers.image.version="1.9.1" \
org.opencontainers.image.description="LinkFix for Discord replies to messages containing URLS that don't embed properly (x.com, twitter.com, YouTube Shorts) with URLS that do (fxtwitter.com, youtu.be)." \
org.opencontainers.image.authors="Lily Skye <me@suchipi.com>, Ralph <ralph@podaboutli.st>" \
org.opencontainers.image.url="https://github.com/podaboutlist/linkfix-for-discord" \
org.opencontainers.image.source="https://github.com/podaboutlist/linkfix-for-discord.git" \
org.opencontainers.image.licenses="AGPL-3.0-or-later"
WORKDIR /app
# Install dependencies with NPM
COPY package*.json .
RUN [ "npm", "ci", "--omit=dev" ]
# Compile TypeScript
COPY . .
RUN [ "npm", "run", "build-prod" ]
# Fire 'er up!
CMD [ "node", "dist/index.js" ]