13 lines
314 B
Docker
13 lines
314 B
Docker
FROM python:3.14-alpine
|
|
RUN apk add --no-cache gcc musl-dev linux-headers
|
|
WORKDIR /app
|
|
COPY requirements.txt .
|
|
RUN pip install --no-cache-dir -r requirements.txt
|
|
COPY . .
|
|
RUN mkdir -p /tmp/uploads && \
|
|
chmod 777 /tmp/uploads && \
|
|
chmod +x entrypoint.sh
|
|
EXPOSE 5000
|
|
USER 1000
|
|
ENTRYPOINT ["./entrypoint.sh"]
|