Fix docker things
This commit is contained in:
@@ -1,7 +1,5 @@
|
|||||||
FROM python:latest
|
FROM python:latest
|
||||||
COPY . /app
|
COPY . /app
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
RUN find wheels -name '*.whl' -print0 | xargs -0 pip install
|
RUN pip install -r requirements.txt
|
||||||
RUN sed -i 's/\r$//' wait-for-it.sh
|
CMD ["bash","-eux","start.sh"]
|
||||||
RUN chmod +x wait-for-it.sh
|
|
||||||
CMD ["./wait-for-it.sh","-t","300","mongo:27017","--","python","app.py","34801","-b","0.0.0.0"]
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
bcrypt==4.0.1
|
bcrypt==4.0.1
|
||||||
ffmpy==0.3.1
|
ffmpy==0.3.1
|
||||||
Flask==3.0.0
|
Flask==3.0.0
|
||||||
git+https://github.com/alanhamlett/flask-caching.git#egg=Flask-Caching
|
Flask-Caching==2.1.0
|
||||||
Flask-Session==0.5.0
|
Flask-Session==0.5.0
|
||||||
Flask-WTF==1.2.1
|
Flask-WTF==1.2.1
|
||||||
gunicorn==21.2.0
|
gunicorn==21.2.0
|
||||||
|
|||||||
6
server/Dockerfile
Normal file
6
server/Dockerfile
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
FROM python:latest
|
||||||
|
COPY . /app
|
||||||
|
WORKDIR /app
|
||||||
|
RUN pip install -r requirements.txt
|
||||||
|
ENV PYTHONUNBUFFERED 1
|
||||||
|
CMD ["python","server.py","34802","-b","0.0.0.0"]
|
||||||
1
server/requirements.txt
Normal file
1
server/requirements.txt
Normal file
@@ -0,0 +1 @@
|
|||||||
|
websockets==9.1
|
||||||
Reference in New Issue
Block a user