Skip to content

Commit

Permalink
chore: building the packages from root
Browse files Browse the repository at this point in the history
  • Loading branch information
shawakash committed Mar 21, 2024
1 parent 4119d3a commit 7aaa2de
Show file tree
Hide file tree
Showing 8 changed files with 17 additions and 21 deletions.
2 changes: 1 addition & 1 deletion docker/api/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ COPY ["yarn.lock", "./yarn.lock"]
COPY ["tsconfig.json", "./tsconfig.json"]

COPY ["packages/typescript-config", "./packages/typescript-config"]
COPY ["packages/eslint-config", "./packages/teslint-config"]
COPY ["packages/eslint-config", "./packages/eslint-config"]
COPY ["backend/backend-common", "./backend/backend-common"]
COPY ["packages/common", "./packages/common"]
COPY ["packages/kafka", "./packages/kafka"]
Expand Down
6 changes: 2 additions & 4 deletions docker/backend-common/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,11 @@ COPY ["yarn.lock", "./yarn.lock"]
COPY ["tsconfig.json", "./tsconfig.json"]

COPY ["packages/typescript-config", "./packages/typescript-config"]
COPY ["packages/eslint-config", "./packages/teslint-config"]
COPY ["packages/eslint-config", "./packages/eslint-config"]
COPY ["backend/backend-common", "./backend/backend-common"]
COPY ["packages/common", "./packages/common"]
COPY ["backend/zeus", "./backend/zeus"]

RUN cd /base
RUN yarn install
RUN cd /base/backend/zeus && yarn run build
RUN cd /base/backend/backend-common && yarn run build
RUN cd /base/packages/common && yarn run build
RUN yarn run build
2 changes: 1 addition & 1 deletion docker/common/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@ COPY ["packages/common", "./packages/common"]

RUN cd /base
RUN yarn install
RUN cd /base/packages/common && yarn run build
RUN yarn run build

WORKDIR /base/packages/common
6 changes: 2 additions & 4 deletions docker/kafka/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,14 @@ COPY ["yarn.lock", "./yarn.lock"]
COPY ["tsconfig.json", "./tsconfig.json"]

COPY ["packages/typescript-config", "./packages/typescript-config"]
COPY ["packages/eslint-config", "./packages/teslint-config"]
COPY ["packages/eslint-config", "./packages/eslint-config"]
COPY ["packages/kafka", "./packages/kafka"]
COPY ["packages/common", "./packages/common"]
COPY ["backend/backend-common", "./backend/backend-common"]

RUN cd /base
RUN yarn install
RUN cd /base/packages/common && yarn run build
RUN cd /base/backend/backend-common && yarn run build
RUN cd /base/packages/kafka && yarn run build
RUN yarn run build

WORKDIR /base/packages/kafka

Expand Down
8 changes: 6 additions & 2 deletions docker/mote/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,14 +1,18 @@
FROM golang:1.21

# Set destination for COPY
WORKDIR /app/backend/mote

COPY go.mod go.sum Makefile ./
RUN make deps

COPY . ./

# Build
RUN make build

EXPOSE 8080
# Expose
EXPOSE 8085

CMD ["make", "dev"]
# Run
CMD ["make", "dev"]
7 changes: 2 additions & 5 deletions docker/openapi/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,15 @@ COPY ["yarn.lock", "./yarn.lock"]
COPY ["tsconfig.json", "./tsconfig.json"]

COPY ["packages/typescript-config", "./packages/typescript-config"]
COPY ["packages/eslint-config", "./packages/teslint-config"]
COPY ["packages/eslint-config", "./packages/eslint-config"]
COPY ["packages/kafka", "./packages/kafka"]
COPY ["packages/common", "./packages/common"]
COPY ["backend/backend-common", "./backend/backend-common"]
COPY ["openapi", "./openapi"]

RUN cd /base
RUN yarn install
RUN cd /base/packages/common && yarn run build
RUN cd /base/packages/kafka && yarn run build
RUN cd /base/backend/backend-common && yarn run build
RUN cd /base/openapi && yarn run gen && yarn run build
RUN yarn run build

WORKDIR /base/openapi

Expand Down
5 changes: 2 additions & 3 deletions docker/recoil/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,12 @@ COPY ["yarn.lock", "./yarn.lock"]
COPY ["tsconfig.json", "./tsconfig.json"]

COPY ["packages/typescript-config", "./packages/typescript-config"]
COPY ["packages/eslint-config", "./packages/teslint-config"]
COPY ["packages/eslint-config", "./packages/eslint-config"]
COPY ["packages/common", "./packages/common"]
COPY ["packages/recoil", "./packages/recoil"]

RUN cd /base
RUN yarn install
RUN cd /base/packages/common && yarn run build
RUN cd /base/packages/recoil && yarn run build
RUN yarn run build

WORKDIR /base/packages/recoil
2 changes: 1 addition & 1 deletion docker/ws/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ COPY ["yarn.lock", "./yarn.lock"]
COPY ["tsconfig.json", "./tsconfig.json"]

COPY ["packages/typescript-config", "./packages/typescript-config"]
COPY ["packages/eslint-config", "./packages/teslint-config"]
COPY ["packages/eslint-config", "./packages/eslint-config"]
COPY ["backend/backend-common", "./backend/backend-common"]
COPY ["packages/common", "./packages/common"]
COPY ["packages/kafka", "./packages/kafka"]
Expand Down

0 comments on commit 7aaa2de

Please sign in to comment.