Skip to content

Commit

Permalink
WIP Multistage Dockerbuild
Browse files Browse the repository at this point in the history
  • Loading branch information
dkolkena committed Oct 26, 2023
1 parent d606dda commit 8438f2e
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:14-alpine
FROM node:14-alpine AS builder

ENV NODE_OPTIONS=--max-old-space-size=8192

Expand Down Expand Up @@ -35,6 +35,13 @@ RUN cd config && npm ci && \
cd ../server && npm ci && \
cd ..

FROM node:14-alpine AS runner

RUN mkdir -p /usr/src/app
WORKDIR /usr/src/app

COPY --from=builder . .

# Generate schema types for common/ to use
RUN cd server && \
npm run generate && \
Expand Down

0 comments on commit 8438f2e

Please sign in to comment.