Skip to content

Commit

Permalink
fix: dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
pYassine committed Nov 8, 2023
1 parent 24aec54 commit e0a5c95
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
9 changes: 8 additions & 1 deletion packages/portail-admins/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:18.16.1 AS builder
FROM node:18.16.1 AS deps

RUN apt-get update -y && apt-get install gettext-base && rm -rf /var/lib/apt/lists/*

Expand All @@ -8,6 +8,13 @@ COPY yarn.lock .yarnrc.yml ./
COPY .yarn .yarn
RUN yarn fetch workspaces focus @domifa/portail-admins

FROM deps AS builder-common
COPY ./packages/common ./packages/common
RUN yarn workspace @domifa/common build

FROM deps AS builder
COPY --from=builder-common /app/packages/common ./packages/common

COPY ./packages/portail-admins ./packages/portail-admins

# these variables are needed at build time because we produce a *static* app
Expand Down
9 changes: 8 additions & 1 deletion packages/portail-usagers/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:18.16.1 AS builder
FROM node:18.16.1 AS deps

RUN apt-get update -y && apt-get install gettext-base && rm -rf /var/lib/apt/lists/*

Expand All @@ -8,6 +8,13 @@ COPY yarn.lock .yarnrc.yml ./
COPY .yarn .yarn
RUN yarn fetch workspaces focus @domifa/portail-usagers

FROM deps AS builder-common
COPY ./packages/common ./packages/common
RUN yarn workspace @domifa/common build

FROM deps AS builder
COPY --from=builder-common /app/packages/common ./packages/common

COPY ./packages/portail-usagers ./packages/portail-usagers

# these variables are needed at build time because we produce a *static* app
Expand Down

0 comments on commit e0a5c95

Please sign in to comment.