Skip to content
This repository has been archived by the owner on Aug 15, 2023. It is now read-only.

Commit

Permalink
build(workspace): fix docker-compose build
Browse files Browse the repository at this point in the history
  • Loading branch information
ascariandrea committed Nov 28, 2022
1 parent 4ea7eee commit 51416fc
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 7 deletions.
21 changes: 14 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,19 @@
FROM node:16-slim as build
FROM node:16.14-slim as build

WORKDIR /app

COPY .yarn ./.yarn
COPY .yarnrc.yml tsconfig.json package.json ./
COPY ./shared ./shared
COPY ./backend ./backend
COPY ./YCAI ./YCAI
COPY .yarn/ .yarn/

COPY package.json .
COPY yarn.lock .
COPY .yarnrc.yml .
COPY tsconfig.json .


COPY packages/shared ./packages/shared
COPY packages/taboule ./packages/taboule
COPY platforms/tktrex ./platforms/tktrex
COPY platforms/yttrex ./platforms/ytrrex
COPY platforms/ycai ./platforms/ycai

RUN yarn install
RUN yarn build
4 changes: 4 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,14 @@ services:
- mongodb

build-from-zip:
image: node:16-slim
build:
dockerfile: from-zip.Dockerfile
context: .
target: unzip
container_name: build-from-zip
stdin_open: true # docker run -i
tty: true # docker run -t

yt-backend:
build:
Expand Down
1 change: 1 addition & 0 deletions packages/shared/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"@material-ui/core": "^4.12.4",
"@material-ui/icons": "^4.11.3",
"@material-ui/lab": "^4.0.0-alpha.61",
"@mui/icons-material": "^5.8.0",
"avenger": "^7.0.1",
"axios": "^0.24.0",
"cross-fetch": "^3.1.5",
Expand Down
1 change: 1 addition & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -6560,6 +6560,7 @@ __metadata:
"@material-ui/core": ^4.12.4
"@material-ui/icons": ^4.11.3
"@material-ui/lab": ^4.0.0-alpha.61
"@mui/icons-material": ^5.8.0
"@pmmmwh/react-refresh-webpack-plugin": ^0.5.7
"@types/bs58": ^4.0.1
"@types/chrome": ^0.0.188
Expand Down

0 comments on commit 51416fc

Please sign in to comment.