1
0
mirror of https://github.com/spacebarchat/server.git synced 2024-11-07 19:32:34 +01:00
server/Dockerfile
2021-06-24 17:22:00 +02:00

11 lines
369 B
Docker

FROM node:lts-alpine
# 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-api
COPY package.json .
RUN npm rebuild bcrypt --build-from-source && npm rebuild canvas --build-from-source
RUN npm install
COPY . .
EXPOSE 3001
RUN npm run build
CMD ["node", "dist/start.js"]