Showing
3 changed files
with
8 additions
and
12 deletions
... | @@ -8,8 +8,6 @@ RUN . "$NVM_DIR/nvm.sh" && nvm install ${NODE_VERSION} | ... | @@ -8,8 +8,6 @@ RUN . "$NVM_DIR/nvm.sh" && nvm install ${NODE_VERSION} |
8 | RUN . "$NVM_DIR/nvm.sh" && nvm use v${NODE_VERSION} | 8 | RUN . "$NVM_DIR/nvm.sh" && nvm use v${NODE_VERSION} |
9 | RUN . "$NVM_DIR/nvm.sh" && nvm alias default v${NODE_VERSION} | 9 | RUN . "$NVM_DIR/nvm.sh" && nvm alias default v${NODE_VERSION} |
10 | ENV PATH="/root/.nvm/versions/node/v${NODE_VERSION}/bin/:${PATH}" | 10 | ENV PATH="/root/.nvm/versions/node/v${NODE_VERSION}/bin/:${PATH}" |
11 | -RUN node --version | ||
12 | -RUN npm --version | ||
13 | RUN npm install -g yarn | 11 | RUN npm install -g yarn |
14 | RUN apt-get install -y git | 12 | RUN apt-get install -y git |
15 | RUN mkdir /app | 13 | RUN mkdir /app | ... | ... |
... | @@ -8,14 +8,12 @@ RUN . "$NVM_DIR/nvm.sh" && nvm install ${NODE_VERSION} | ... | @@ -8,14 +8,12 @@ RUN . "$NVM_DIR/nvm.sh" && nvm install ${NODE_VERSION} |
8 | RUN . "$NVM_DIR/nvm.sh" && nvm use v${NODE_VERSION} | 8 | RUN . "$NVM_DIR/nvm.sh" && nvm use v${NODE_VERSION} |
9 | RUN . "$NVM_DIR/nvm.sh" && nvm alias default v${NODE_VERSION} | 9 | RUN . "$NVM_DIR/nvm.sh" && nvm alias default v${NODE_VERSION} |
10 | ENV PATH="/root/.nvm/versions/node/v${NODE_VERSION}/bin/:${PATH}" | 10 | ENV PATH="/root/.nvm/versions/node/v${NODE_VERSION}/bin/:${PATH}" |
11 | -RUN node --version | ||
12 | -RUN npm --version | ||
13 | -RUN npm install -g yarn | ||
14 | RUN apt-get install -y git | 11 | RUN apt-get install -y git |
15 | -RUN mkdir /app | 12 | +RUN npm install -g yarn |
16 | -RUN git clone http://khuhub.khu.ac.kr/2021-1-capstone-design2/2015104215 /app | 13 | +RUN mkdir /web |
17 | -RUN cd /app/project;yarn install | 14 | +RUN git clone --depth=1 http://khuhub.khu.ac.kr/2021-1-capstone-design2/2015104215/ /web |
18 | -RUN cd /app/project;yarn build:web | 15 | +RUN cd /web/project;yarn install |
19 | EXPOSE 3000 | 16 | EXPOSE 3000 |
20 | -WORKDIR /app/project | ||
21 | -CMD [ "yarn", "start:web" ] | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
17 | +RUN cd /web/project;yarn build:web | ||
18 | +WORKDIR /web/project | ||
19 | +# CMD [ "yarn", "start:web" ] | ||
... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
... | @@ -7,7 +7,7 @@ | ... | @@ -7,7 +7,7 @@ |
7 | "scripts": { | 7 | "scripts": { |
8 | "build": "lerna run build", | 8 | "build": "lerna run build", |
9 | "build:api" : "lerna exec --scope @graphql-community/api --stream yarn build", | 9 | "build:api" : "lerna exec --scope @graphql-community/api --stream yarn build", |
10 | - "build:web": "lerna exec --scope @graphql-community/api --stream yarn build", | 10 | + "build:web": "lerna exec --scope @graphql-community/web --stream yarn build", |
11 | "dev:web": "lerna exec --scope @graphql-community/web --stream yarn dev", | 11 | "dev:web": "lerna exec --scope @graphql-community/web --stream yarn dev", |
12 | "dev:api": "lerna exec --scope @graphql-community/api --stream yarn start:dev", | 12 | "dev:api": "lerna exec --scope @graphql-community/api --stream yarn start:dev", |
13 | "start:web": "lerna exec --scope @graphql-community/web --stream yarn start", | 13 | "start:web": "lerna exec --scope @graphql-community/web --stream yarn start", | ... | ... |
-
Please register or login to post a comment