[Dockerfile] Install canvas

This commit is contained in:
Paul Munteanu
2021-07-28 04:57:07 +03:00
parent 56f5c7577e
commit d93afb0a52

View File

@@ -3,7 +3,7 @@ FROM node:lts-alpine
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 rebuild bcrypt --build-from-source && npm install canvas --build-from-source
RUN npm install
COPY . .
EXPOSE 3001