-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathDockerfile
More file actions
45 lines (35 loc) · 1 KB
/
Dockerfile
File metadata and controls
45 lines (35 loc) · 1 KB
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
35
36
37
38
39
40
41
42
43
44
45
# Base image
FROM prefecthq/prefect@sha256:c290bae3b8dc237bcdeeb7ee22ef80d5d75a66eaf9f770afca572d1294854f4d as base
# System dependencies
RUN apt-get update && apt-get install -y \
build-essential \
curl \
git \
iputils-ping \
net-tools \
dnsutils \
&& rm -rf /var/lib/apt/lists/*
# Development image
FROM base as development
# Install development tools and Docker CLI
RUN apt-get update && apt-get install -y \
vim \
docker.io \
&& rm -rf /var/lib/apt/lists/*
# Add Docker group and permissions
RUN groupadd -g 999 docker || true && \
usermod -aG docker root
# Python dependencies
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Working directory
WORKDIR /workspace
# Production image
FROM base as production
# Python dependencies
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Working directory
WORKDIR /workspace
# Create necessary directories
RUN mkdir -p /workspace/data /workspace/flows /workspace/mlruns