1
0
mirror of https://github.com/spacebarchat/server.git synced 2024-11-24 11:22:31 +01:00

fix: update source paths

This commit is contained in:
Hayden Young 2021-10-15 14:01:52 +00:00 committed by GitHub
parent aae55cfe71
commit 685cfaf06a

View File

@ -1,4 +1,4 @@
FROM node:lts-alpine FROM node:lts-alpine AS builder
# needed for native packages (bcrypt, canvas) # needed for native packages (bcrypt, canvas)
RUN apk add --no-cache \ RUN apk add --no-cache \
@ -11,14 +11,14 @@ RUN apk add --no-cache \
pango-dev \ pango-dev \
giflib-dev giflib-dev
WORKDIR /usr/src/fosscord-api WORKDIR /usr/src/api
RUN npm rebuild bcrypt --build-from-source \ RUN npm rebuild bcrypt --build-from-source \
&& npm install canvas --build-from-source && npm install canvas --build-from-source
COPY api/package.json api/package-lock.json ./ COPY api/package.json api/package-lock.json ./
COPY util ../util COPY util ../util
RUN npm install RUN cd ../util && npm install && cd ../api && npm install
COPY api/ . COPY api/ .