Got docker-compose.yaml to work
This commit is contained in:
parent
1136146e86
commit
0e4c6b5d40
|
@ -1,6 +1,6 @@
|
|||
FROM python:3.8
|
||||
|
||||
WORKDIR /usr/src/app
|
||||
WORKDIR /app
|
||||
|
||||
COPY requirements.txt ./
|
||||
RUN pip install --no-cache-dir -r requirements.txt
|
||||
|
@ -11,3 +11,4 @@ ENV FLASK_ENV production
|
|||
COPY . .
|
||||
|
||||
CMD ["gunicorn", "-b", "0.0.0.0:5000", "my_homepage:create_app()"]
|
||||
#CMD ["gunicorn", "-b", "127.0.0.1:5000", "my_homepage:create_app()"]
|
||||
|
|
|
@ -1,6 +1,10 @@
|
|||
version: '3'
|
||||
version: '3.9'
|
||||
|
||||
services:
|
||||
app:
|
||||
image: my_homepage
|
||||
web:
|
||||
build: .
|
||||
restart: unless-stopped
|
||||
volumes:
|
||||
- .:/app
|
||||
ports:
|
||||
- "5000:5000"
|
||||
|
|
Loading…
Reference in New Issue
Block a user