Added Dockerfile
This commit is contained in:
parent
c976809c1e
commit
0643f781a6
14
Dockerfile
Normal file
14
Dockerfile
Normal file
|
|
@ -0,0 +1,14 @@
|
||||||
|
FROM python:3.13
|
||||||
|
|
||||||
|
WORKDIR /usr/local/app
|
||||||
|
|
||||||
|
COPY server/requirements.txt ./
|
||||||
|
RUN pip install --no-cache-dir -r requirements.txt
|
||||||
|
|
||||||
|
COPY server/python_server.py
|
||||||
|
EXPOSE 8080
|
||||||
|
|
||||||
|
RUN useradd app
|
||||||
|
USER app
|
||||||
|
|
||||||
|
CMD ["gunicorn", "-w", "4", "python_server:app", "--bind", "0.0.0.0:8080"]
|
||||||
Loading…
Reference in New Issue
Block a user