This repository has been archived on 2025-07-30. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
uploader/Dockerfile

22 lines
575 B
Docker
Raw Normal View History

2024-05-06 12:00:57 +03:00
FROM python:alpine
# Update package lists and install necessary dependencies
2024-05-06 12:04:10 +03:00
RUN apk update && apk add --no-cache build-base icu-data-full curl python3-dev musl-dev && curl -sSL https://install.python-poetry.org | python
2024-05-06 12:00:57 +03:00
# Set working directory
2023-09-28 02:05:14 +03:00
WORKDIR /app
2024-05-06 12:00:57 +03:00
# Copy only the pyproject.toml file initially
COPY pyproject.toml /app/
# Install poetry and dependencies
2024-05-06 12:04:10 +03:00
RUN pip install poetry && poetry config virtualenvs.create false && poetry install --no-root --only main
2024-05-06 12:00:57 +03:00
# Copy the rest of the files
2023-12-02 08:44:06 +03:00
COPY . /app
2024-05-06 12:00:57 +03:00
# Expose the port
EXPOSE 8000
CMD ["python", "server.py"]