TRMT commited on
Commit
435dacb
·
1 Parent(s): 3496292

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -7
Dockerfile CHANGED
@@ -2,23 +2,18 @@
2
  FROM tiangolo/uvicorn-gunicorn-fastapi:python3.9
3
 
4
  # 作業ディレクトリを設定
5
- #WORKDIR /app
6
 
7
  RUN mkdir /CACHE/ && chmod -R 777 /CACHE/
8
  ENV TRANSFORMERS_CACHE /CACHE/
9
 
10
  # 依存関係をインストール
11
  #COPY requirements.txt
12
- RUN dir
13
- RUN ls
14
  RUN pip install --no-cache-dir -r requirements.txt
15
 
16
  # FastAPIアプリケーションのコードをコピー
17
  #COPY app /app
18
- #COPY static /app/static
19
- #COPY model /app/model
20
- #COPY data /app/data
21
- #COPY templates /app/templates
22
 
23
  # Expose port 8000 for FastAPI to run on
24
  EXPOSE 8000
 
2
  FROM tiangolo/uvicorn-gunicorn-fastapi:python3.9
3
 
4
  # 作業ディレクトリを設定
5
+ WORKDIR /app
6
 
7
  RUN mkdir /CACHE/ && chmod -R 777 /CACHE/
8
  ENV TRANSFORMERS_CACHE /CACHE/
9
 
10
  # 依存関係をインストール
11
  #COPY requirements.txt
 
 
12
  RUN pip install --no-cache-dir -r requirements.txt
13
 
14
  # FastAPIアプリケーションのコードをコピー
15
  #COPY app /app
16
+ COPY . /app
 
 
 
17
 
18
  # Expose port 8000 for FastAPI to run on
19
  EXPOSE 8000