2021-05-09 00:51:02 +02:00
|
|
|
FROM node:lts-alpine
|
2021-05-08 23:53:15 +02:00
|
|
|
WORKDIR /usr/src/fosscord-gateway
|
2021-05-23 15:06:23 +02:00
|
|
|
COPY package.json .
|
2021-07-29 21:23:05 +02:00
|
|
|
COPY package-lock.json .
|
2021-05-09 17:25:27 +02:00
|
|
|
RUN apk --no-cache --virtual build-dependencies add \
|
2021-05-09 17:18:11 +02:00
|
|
|
python \
|
|
|
|
make \
|
|
|
|
g++
|
2021-05-08 23:53:15 +02:00
|
|
|
RUN npm install
|
2021-05-09 17:18:11 +02:00
|
|
|
RUN apk del build-dependencies
|
2021-05-23 15:06:23 +02:00
|
|
|
COPY . .
|
2021-05-29 20:36:19 +02:00
|
|
|
RUN npm run build
|
2021-05-08 23:53:15 +02:00
|
|
|
EXPOSE 3002
|
2021-07-29 21:23:05 +02:00
|
|
|
CMD ["node", "dist/start.js"]
|