Docker: Fix an issue were native dependencies werent able to build

This commit is contained in:
Diego Magdaleno 2021-05-09 10:18:11 -05:00
parent 6f827ee9cd
commit a78102b6cf

View File

@ -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"]