diff options
author | Hayden Young <hi@hbjy.dev> | 2021-10-15 14:01:52 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-15 14:01:52 +0000 |
commit | 22f185b1f531583e0c11e5bf3887a20522f7c083 (patch) | |
tree | f6bc7709e7c20cc7ee97926682e5a32ae3c313f4 /api/Dockerfile | |
parent | fix: make API dockerfile use correct setup steps (diff) | |
download | server-22f185b1f531583e0c11e5bf3887a20522f7c083.tar.xz |
fix: update source paths
Diffstat (limited to 'api/Dockerfile')
-rw-r--r-- | api/Dockerfile | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/api/Dockerfile b/api/Dockerfile index 78256be6..dbe21e15 100644 --- a/api/Dockerfile +++ b/api/Dockerfile @@ -1,4 +1,4 @@ -FROM node:lts-alpine +FROM node:lts-alpine AS builder # needed for native packages (bcrypt, canvas) RUN apk add --no-cache \ @@ -11,14 +11,14 @@ RUN apk add --no-cache \ pango-dev \ giflib-dev -WORKDIR /usr/src/fosscord-api +WORKDIR /usr/src/api RUN npm rebuild bcrypt --build-from-source \ && npm install canvas --build-from-source COPY api/package.json api/package-lock.json ./ COPY util ../util -RUN npm install +RUN cd ../util && npm install && cd ../api && npm install COPY api/ . |