Skip to content

Commit

Permalink
copy local api client in docker image
Browse files Browse the repository at this point in the history
  • Loading branch information
BeryJu committed Jul 13, 2022
1 parent 3555876 commit 5050128
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
# Stage 1: Build website
# Stage 1: Build web
FROM --platform=${BUILDPLATFORM} docker.io/node:18 as web-builder

COPY ./web /work/web/

ENV NODE_ENV=production
WORKDIR /work/web
RUN npm i && npm run build
RUN npm ci
COPY ./gen-ts-api/ /work/web/node_modules/gravity-api/
RUN npm run build

# Stage 2: Build
FROM golang:1.18 as builder
Expand Down

0 comments on commit 5050128

Please sign in to comment.