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
commitaffd3b109282fa6077093658a7abca1d11be11f0 (patch)
tree4e7abc3b4fc4494e620e15e47538672060a76d78 /api/Dockerfile
parent:bug: fix rabbit mq -> fanout instead of work queue (diff)
parent:sparkles: cdn (diff)
downloadserver-ts-affd3b109282fa6077093658a7abca1d11be11f0.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"]