23 lines
461 B
Docker
23 lines
461 B
Docker
FROM moby/buildkit AS buildkit
|
|
|
|
FROM python:3.12-alpine
|
|
|
|
RUN apk add --no-cache git
|
|
|
|
COPY --from=buildkit /usr/bin/buildctl /usr/bin/buildctl
|
|
|
|
WORKDIR /app
|
|
|
|
COPY requirements.txt .
|
|
RUN pip install --no-cache-dir -r requirements.txt
|
|
|
|
COPY app ./app
|
|
COPY scripts ./scripts
|
|
|
|
ENV WORK_DIR=/tmp/builds
|
|
ENV BUILDKIT_HOST=unix:///run/buildkit/buildkitd.sock
|
|
RUN mkdir -p /tmp/builds
|
|
|
|
EXPOSE 8080
|
|
|
|
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8080"]
|