File size: 690 Bytes
a91aea5
 
 
41a29c7
f68cd12
 
a91aea5
 
 
41a29c7
4c6863c
 
 
 
94bcd2f
41a29c7
7dae1cf
 
a91aea5
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# ベースイメージとして公式の 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;"]