Dockerize application using docker-compose with PostgreSQL
This commit is contained in:
17
frontend/Dockerfile
Normal file
17
frontend/Dockerfile
Normal file
@@ -0,0 +1,17 @@
|
||||
FROM python:3.11-slim
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
# NiceGUI might need some dependencies
|
||||
RUN apt-get update && apt-get install -y \
|
||||
procps \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
COPY requirements.txt .
|
||||
RUN pip install --no-cache-dir -r requirements.txt
|
||||
|
||||
COPY . .
|
||||
|
||||
EXPOSE 8080
|
||||
|
||||
CMD ["python", "app.py"]
|
||||
@@ -138,4 +138,4 @@ def render_inventory_page():
|
||||
]
|
||||
ui.table(columns=columns, rows=rows, row_key='name')
|
||||
|
||||
ui.run(title="Suite de Producción de Ballet", port=8080)
|
||||
ui.run(title="Suite de Producción de Ballet", port=8080, host='0.0.0.0')
|
||||
|
||||
Reference in New Issue
Block a user