Skip to content

Commit

Permalink
fix dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
tmthecoder committed Jan 27, 2024
1 parent e7123a6 commit 8563124
Showing 1 changed file with 17 additions and 25 deletions.
42 changes: 17 additions & 25 deletions Dockerfile.dev
Original file line number Diff line number Diff line change
Expand Up @@ -10,31 +10,27 @@ RUN yarn global add node-gyp prisma

RUN chmod +x /app/packages/proto/gen_protos.sh

WORKDIR /app/packages/proto

RUN yarn install --frozen-lockfile

# WORKDIR /app/packages/proto
#
# RUN yarn install --frozen-lockfile
#
# RUN yarn build
#
# RUN yarn install --frozen-lockfile
#
# WORKDIR /app/packages/api-gateway
#
# RUN yarn install --frozen-lockfile
#
# WORKDIR /app/packages/auth-service
#
# RUN yarn install --frozen-lockfile
#
# WORKDIR /app/packages/db-service
#
# RUN yarn install --frozen-lockfile
RUN yarn build

FROM node:18 as gateway-dev
RUN yarn install --frozen-lockfile

WORKDIR /app/packages/api-gateway

RUN yarn install --frozen-lockfile

WORKDIR /app/packages/auth-service

# RUN apt update && apt install -y protobuf-compiler
RUN yarn install --frozen-lockfile

WORKDIR /app/packages/db-service

RUN yarn install --frozen-lockfile

FROM node:18 as gateway-dev

WORKDIR /app

Expand All @@ -49,8 +45,6 @@ WORKDIR /app/packages/api-gateway

FROM node:18 as auth-service-dev

# RUN apt update && apt install -y protobuf-compiler

WORKDIR /app

COPY --from=deps /app/node_modules ./node_modules/
Expand All @@ -64,8 +58,6 @@ WORKDIR /app/packages/auth-service

FROM node:18 as db-service-dev

# RUN apt update && apt install -y protobuf-compiler

WORKDIR /app

COPY --from=deps /app/node_modules ./node_modules/
Expand Down

0 comments on commit 8563124

Please sign in to comment.