Rammerhead / Dockerfile
GPTfree api
Update Dockerfile
94bb9fd verified
raw
history blame
708 Bytes
# Node.js 16イメージをベースにする
FROM node:16
# 作業ディレクトリを設定
WORKDIR /app
# 必要な依存パッケージをインストール
RUN apt-get update && apt-get install -y python3 build-essential
# リポジトリをクローン
RUN git clone https://github.com/s-tn/rammerhead-heroku.git .
# npmのバージョンを明示的に固定
RUN npm install -g [email protected]
# アプリの依存関係をインストール
RUN npm install --legacy-peer-deps --ignore-scripts
RUN npm rebuild sqlite3
# アプリをビルド
RUN npm run build
# 優先ポートとフォールバックポートを公開
EXPOSE 443
EXPOSE 8080
# サーバーを起動
CMD ["node", "src/server.js"]