optimizing Dockerfile
This commit is contained in:
3
.dockerignore
Normal file
3
.dockerignore
Normal file
@@ -0,0 +1,3 @@
|
||||
**/*.pyc
|
||||
**/*.pyo
|
||||
**/__pycache__
|
||||
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
||||
/app/__pycache__/
|
||||
@@ -12,7 +12,7 @@ RUN apt-get update \
|
||||
COPY ./app/requirements.txt .
|
||||
RUN pip3 install -r requirements.txt
|
||||
|
||||
COPY ./app/* .
|
||||
COPY ./app /app
|
||||
|
||||
EXPOSE 8501
|
||||
|
||||
|
||||
Reference in New Issue
Block a user