1
0
mirror of https://github.com/spacebarchat/server.git synced 2024-11-06 10:52:31 +01:00
server/api/Dockerfile

13 lines
405 B
Docker
Raw Normal View History

FROM node:lts-alpine
2021-06-24 17:22:00 +02:00
# needed for native packages (bcrypt, canvas)
RUN apk add --no-cache make gcc g++ python cairo-dev jpeg-dev pango-dev giflib-dev
WORKDIR /usr/src/fosscord-server
COPY package.json .
COPY package-lock.json .
RUN npm rebuild bcrypt --build-from-source && npm install canvas --build-from-source
RUN npm install
COPY . .
2021-05-23 03:28:19 +02:00
EXPOSE 3001
RUN npm run build-docker
2021-07-28 00:55:59 +02:00
CMD ["node", "dist/start.js"]