summary refs log tree commit diff
path: root/api/Dockerfile
diff options
context:
space:
mode:
authorFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-08-12 20:17:41 +0200
committerFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-08-12 20:17:41 +0200
commite01550d13c1df75d919166fd1635a8565ab858c5 (patch)
tree73cb1f1954024f01973292c0c120a363dfceaed0 /api/Dockerfile
parent:bug: fix rabbit mq -> fanout instead of work queue (diff)
parent:sparkles: cdn (diff)
downloadserver-ts-e01550d13c1df75d919166fd1635a8565ab858c5.tar.xz
Merge branch 'master' into gateway
Diffstat (limited to 'api/Dockerfile')
-rw-r--r--api/Dockerfile12
1 files changed, 12 insertions, 0 deletions
diff --git a/api/Dockerfile b/api/Dockerfile
new file mode 100644

index 00000000..b1b00a7a --- /dev/null +++ b/api/Dockerfile
@@ -0,0 +1,12 @@ +FROM node:lts-alpine +# needed for native packages (bcrypt, canvas) +RUN apk add --no-cache make gcc g++ python cairo-dev jpeg-dev pango-dev giflib-dev +WORKDIR /usr/src/fosscord-api +COPY package.json . +COPY package-lock.json . +RUN npm rebuild bcrypt --build-from-source && npm install canvas --build-from-source +RUN npm install +COPY . . +EXPOSE 3001 +RUN npm run build-docker +CMD ["node", "dist/start.js"]