Piped-Material-2 / Dockerfile
soiz1's picture
Update Dockerfile
4c6863c verified
raw
history blame contribute delete
690 Bytes
# ベースイメージとして公式の NGINX イメージを使用
FROM nginx:latest
# 必要なパッケージをインストール
RUN apt-get update && apt-get install -y git && rm -rf /var/lib/apt/lists/*
# 必要なファイルをリポジトリから取得
RUN git clone https://github.com/izum00/Piped-Material.git /app
# 必要なディレクトリを作成し、権限を設定
RUN mkdir -p /var/cache/nginx/proxy_temp && \
chown -R nginx:nginx /var/cache/nginx && \
chmod -R 755 /var/cache/nginx
# 作業ディレクトリを指定
WORKDIR /app
# コンテナがリッスンするポートを指定
EXPOSE 80
# NGINX を起動
CMD ["nginx", "-g", "daemon off;"]