# Base image | |
FROM python:3.10-slim-buster | |
# Working directory | |
WORKDIR /app | |
# Install dependencies | |
COPY requirements.txt requirements.txt | |
RUN python -m venv venv | |
ENV PATH="/app/venv/bin:$PATH" | |
RUN apt-get update && apt-get install -y --no-install-recommends build-essential libffi-dev cmake libcurl4-openssl-dev && pip install --no-cache-dir -r requirements.txt | |
# Copy source code | |
COPY . . | |
RUN chmod -R 777 translations | |
# Expose port and start command | |
EXPOSE 8080 | |
CMD ["python3", "./run.py"] |