forked from louisgthier/decompai
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
34 lines (24 loc) · 981 Bytes
/
Dockerfile
File metadata and controls
34 lines (24 loc) · 981 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# syntax=docker/dockerfile:1
FROM python:3.11-slim AS base
ENV PYTHONDONTWRITEBYTECODE=1 \
PYTHONUNBUFFERED=1
WORKDIR /app
RUN apt-get update && apt-get install -y --no-install-recommends \
ca-certificates \
curl \
git \
&& rm -rf /var/lib/apt/lists/*
ARG DOCKER_VERSION=27.5.1
RUN curl -fsSL https://download.docker.com/linux/static/stable/x86_64/docker-${DOCKER_VERSION}.tgz \
| tar -xz --strip-components=1 -C /usr/local/bin docker/docker
ARG BUILDX_VERSION=v0.15.1
RUN mkdir -p /usr/lib/docker/cli-plugins && \
curl -fsSL https://github.com/docker/buildx/releases/download/${BUILDX_VERSION}/buildx-${BUILDX_VERSION}.linux-amd64 \
-o /usr/lib/docker/cli-plugins/docker-buildx && \
chmod +x /usr/lib/docker/cli-plugins/docker-buildx
COPY requirements.txt ./
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
EXPOSE 7860
ENV DECOMPAI_RUNNER_IMAGE=louisgauthier/decompai-runner:1.0.0
CMD ["python", "run.py"]