mirror of
https://github.com/spacebarchat/server.git
synced 2026-08-27 22:34:11 +00:00
🐛 docker file
This commit is contained in:
@@ -0,0 +1,2 @@
|
||||
node_modules
|
||||
dist
|
||||
@@ -1,6 +1,9 @@
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user