Il sito funziona meglio con JavaScript.
Home
Esplora
Aiuto
Registrati
Accedi
sosuke.iwabuchi
/
KT-MyPage-front
Segui
1
Vota
0
Forka
0
Codice
Problemi
0
Pull Requests
0
Rilasci
0
Wiki
Attività
Sfoglia il codice sorgente
開発環境構築手順の作成 docker
develop
sosuke.iwabuchi
1 anno fa
parent
a494ee4c6b
commit
3f87477f0e
3 ha cambiato i file
con
29 aggiunte
e
0 eliminazioni
Visualizzazione separata
Diff Options
Show Stats
Download Patch File
Download Diff File
+16
-0
docker-compose.yaml
+3
-0
docker/node/Dockerfile
+10
-0
環境構築手順.txt
+ 16
- 0
docker-compose.yaml
Vedi File
@@ -0,0 +1,16 @@
version: '3'
services:
nodejs:
build:
context: ./docker/node
volumes:
- .:/app
# 常時起動用のオプション
tty: true
stdin_open: true
ports:
- 3000:3000
+ 3
- 0
docker/node/Dockerfile
Vedi File
@@ -0,0 +1,3 @@
FROM node:20-alpine
WORKDIR /app
+ 10
- 0
環境構築手順.txt
Vedi File
@@ -0,0 +1,10 @@
前提条件
・dockerインストール済みであること
1. コンテナの起動 # docker compose up -d
2. コンテナへログイン # docker compose exec nodejs sh
3. 初回でパッケージのインストールが済んでいない場合 # yarn install
開発用のサーバーを立ち上げる場合 # yarn start
ビルドする場合 # yarn build
=> buildディレクトリにファイルが作成される
Write
Preview
Loading…
Annulla
Salva