22 lines
569 B
Docker
22 lines
569 B
Docker
FROM python:3.11-slim
|
|
|
|
RUN apt-get update && \
|
|
apt-get install -y curl && \
|
|
curl -LO https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl && \
|
|
install -m 0755 kubectl /usr/local/bin/kubectl && \
|
|
rm -rf /var/lib/apt/lists/*
|
|
|
|
WORKDIR /app
|
|
|
|
COPY migrator.py mapping.yaml app.py requirements.txt ./
|
|
COPY templates ./templates
|
|
COPY static ./static
|
|
|
|
RUN pip install --no-cache-dir -r requirements.txt gunicorn
|
|
|
|
RUN mkdir /work
|
|
|
|
EXPOSE 8080
|
|
|
|
CMD ["gunicorn", "-b", "0.0.0.0:8080", "--timeout", "300", "app:app"]
|