Files
guessit/services/backend/Dockerfile
2024-01-15 20:49:58 -05:00

21 lines
343 B
Docker

# Use an official Python runtime as a parent image
FROM python:3.10-slim
ENV PYTHONUNBUFFERED 1
RUN pip install poetry
WORKDIR /app
COPY pyproject.toml pyproject.toml
COPY poetry.lock poetry.lock
RUN pip install poetry
RUN poetry config virtualenvs.create false
RUN poetry install --no-dev
COPY . .
EXPOSE 5000
CMD ["python", "app.py"]