1
0
mirror of https://github.com/spacebarchat/server.git synced 2024-11-11 13:14:06 +01:00
server/gateway/Dockerfile

15 lines
302 B
Docker
Raw Normal View History

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 .
RUN apk --no-cache --virtual build-dependencies add \
python \
make \
g++
2021-05-08 23:53:15 +02:00
RUN npm install
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"]