1
0
mirror of https://github.com/spacebarchat/server.git synced 2024-09-22 02:31:36 +02:00

Merge pull request #63 from DiegoMagdaleno/master

Docker: Fix an issue were native dependencies weren't able to build
This commit is contained in:
Flam3rboy 2021-05-09 17:22:38 +02:00 committed by GitHub
commit 70e722924e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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