Skip to content

Commit

Permalink
More Dockerfile tweaking
Browse files Browse the repository at this point in the history
  • Loading branch information
toresbe committed Jul 28, 2023
1 parent f8d88f4 commit 89d8106
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,20 +11,16 @@ RUN yarn --frozen-lockfile --production=true
################################################################################
# Build-time dependencies
################################################################################
FROM deps AS build-deps
FROM deps AS builder

WORKDIR /app
RUN yarn --frozen-lockfile --production=false

################################################################################
# Builder
################################################################################
FROM node:18-alpine AS builder

WORKDIR /app
COPY . .
COPY --from=build-deps /app/node_modules ./node_modules

ENV FK_MEDIA https://beta.frikanalen.no/media
ENV FK_GRAPHQL https://beta.frikanalen.no/graphql
ENV FK_API https://beta.frikanalen.no/api/v2
ENV FK_UPLOAD https://beta.frikanalen.no/api/v2/media/upload
ENV FK_MEDIAPROC https://beta.frikanalen.no/api/v2/media
RUN yarn build

################################################################################
Expand Down

0 comments on commit 89d8106

Please sign in to comment.