From a78102b6cf09b8e58c83faa19877fa9574f65d4c Mon Sep 17 00:00:00 2001 From: Diego Magdaleno Date: Sun, 9 May 2021 10:18:11 -0500 Subject: [PATCH] Docker: Fix an issue were native dependencies werent able to build --- Dockerfile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Dockerfile b/Dockerfile index c9f27b5e..00dae566 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,7 +2,12 @@ FROM node:lts-alpine RUN mkdir -p /usr/src/fosscord-gateway WORKDIR /usr/src/fosscord-gateway COPY package.json /usr/src/fosscord-gateway +RUN apk add --no-cache --virtual build-dependencies add \ + python \ + make \ + g++ RUN npm install +RUN apk del build-dependencies COPY . /usr/src/fosscord-gateway EXPOSE 3002 CMD ["npm", "start"] \ No newline at end of file