🐛 docker file

This commit is contained in:
Flam3rboy 2021-06-24 17:22:00 +02:00
parent 2be07d2f73
commit 8f5bdf17ab
2 changed files with 5 additions and 0 deletions

2
.dockerignore Normal file
View File

@ -0,0 +1,2 @@
node_modules
dist

View File

@ -1,6 +1,9 @@
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 .
RUN npm rebuild bcrypt --build-from-source && npm rebuild canvas --build-from-source
RUN npm install
COPY . .
EXPOSE 3001