Skip to content

Commit

Permalink
Merge pull request #181 from tegnike/feature/fix-dockerfile
Browse files Browse the repository at this point in the history
Dockerfile修正
  • Loading branch information
tegnike authored Oct 16, 2024
2 parents 8c4ab62 + aa7c0b8 commit 9c96078
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .env
Original file line number Diff line number Diff line change
Expand Up @@ -108,4 +108,4 @@ NEXT_PUBLIC_REALTIME_API_MODE=""
NEXT_PUBLIC_SLIDE_MODE=""

# System Prompt
NEXT_PUBLIC_SYSTEM_PROMPT="
NEXT_PUBLIC_SYSTEM_PROMPT=""
17 changes: 12 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
# ベースイメージとしてNode.js 20を使用
FROM node:20

# 必要なシステムライブラリをインストール
RUN apt-get update && apt-get install -y \
libcairo2-dev \
libpango1.0-dev \
libjpeg-dev \
libgif-dev \
librsvg2-dev \
pkg-config \
&& rm -rf /var/lib/apt/lists/*

# 作業ディレクトリを設定
WORKDIR /app

Expand All @@ -13,11 +23,8 @@ RUN npm ci
# アプリケーションのソースコードをコピー
COPY . .

# アプリケーションをビルド
RUN npm run build

# 3000番ポートを公開
EXPOSE 3000

# アプリケーションを起動
CMD ["npm", "start"]
# 開発モードでアプリケーションを起動
CMD ["npm", "run", "dev"]
4 changes: 3 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ services:
ports:
- '3000:3000'
volumes:
- .:/work
- .:/app
- /app/node_modules
env_file:
- .env
command: npm run dev

0 comments on commit 9c96078

Please sign in to comment.