mirror of
https://github.com/spacebarchat/server.git
synced 2024-11-23 10:52:30 +01:00
435e67b7a9
This reverts commit aae55cfe71
.
13 lines
405 B
Docker
13 lines
405 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-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 . .
|
|
EXPOSE 3001
|
|
RUN npm run build-docker
|
|
CMD ["node", "dist/start.js"]
|