Fix: Modificacion estructura del Proyecto
This commit is contained in:
parent
d69441779b
commit
4d5a88145d
@ -5,8 +5,8 @@ FROM python:3.11-slim
|
||||
WORKDIR /app
|
||||
|
||||
# Copia el archivo de requerimientos y lo instala
|
||||
COPY requirements.txt .
|
||||
RUN pip install --no-cache-dir -r requirements.txt
|
||||
COPY ./requirements.txt /tmp/
|
||||
RUN pip install --no-cache-dir -r /tmp/requirements.txt
|
||||
|
||||
# Copia el código fuente
|
||||
COPY . .
|
||||
@ -15,4 +15,4 @@ COPY . .
|
||||
EXPOSE 8000
|
||||
|
||||
# Comando de arranque
|
||||
CMD ["uvicorn", "api:app", "--host", "0.0.0.0", "--port", "8000"]
|
||||
CMD ["uvicorn", "Api.main:app", "--host", "0.0.0.0", "--port", "8000"]
|
||||
|
@ -5,7 +5,7 @@ services:
|
||||
escpos:
|
||||
build: .
|
||||
container_name: escpos
|
||||
command: uvicorn api:app --host 0.0.0.0 --port 8000 --reload
|
||||
command: uvicorn Api.main:app --host 0.0.0.0 --port 8000 --reload
|
||||
volumes:
|
||||
- .:/app
|
||||
ports:
|
||||
|
Loading…
Reference in New Issue
Block a user