Este sitio web funciona mejor con JavaScript.
Inicio
Explorar
Ayuda
Registro
Iniciar sesión
sosuke.iwabuchi
/
KT-MyPage-front
Seguir
1
Destacar
0
Fork
0
Código
Incidencias
0
Pull Requests
0
Lanzamientos
0
Wiki
Actividad
Explorar el Código
開発環境構築手順の作成 docker
develop
sosuke.iwabuchi
hace 1 año
padre
a494ee4c6b
commit
3f87477f0e
Se han
modificado 3 ficheros
con
29 adiciones
y
0 borrados
Dividir vista
Opciones de diferencias
Mostrar estadísticas
Descargar archivo de parche
Descargar archivo de diferencias
+16
-0
docker-compose.yaml
+3
-0
docker/node/Dockerfile
+10
-0
環境構築手順.txt
+ 16
- 0
docker-compose.yaml
Ver fichero
@@ -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
Ver fichero
@@ -0,0 +1,3 @@
FROM node:20-alpine
WORKDIR /app
+ 10
- 0
環境構築手順.txt
Ver fichero
@@ -0,0 +1,10 @@
前提条件
・dockerインストール済みであること
1. コンテナの起動 # docker compose up -d
2. コンテナへログイン # docker compose exec nodejs sh
3. 初回でパッケージのインストールが済んでいない場合 # yarn install
開発用のサーバーを立ち上げる場合 # yarn start
ビルドする場合 # yarn build
=> buildディレクトリにファイルが作成される
Escribir
Vista previa
Cargando…
Cancelar
Guardar