-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile.dev
More file actions
executable file
·33 lines (22 loc) · 929 Bytes
/
Copy pathDockerfile.dev
File metadata and controls
executable file
·33 lines (22 loc) · 929 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
# Use Ubuntu 22.04 as base image
FROM ubuntu:22.04
# Set noninteractive mode for apt to avoid interactive prompts
ENV DEBIAN_FRONTEND=noninteractive
# Update system packages and install dependencies
RUN apt update && apt install -y \
software-properties-common curl sudo git build-essential wget unzip \
&& add-apt-repository ppa:deadsnakes/ppa -y \
&& apt update && apt install -y python3.12 python3.12-venv python3.12-dev \
&& rm -rf /var/lib/apt/lists/*
# Ensure "python3" points to Python 3.12
RUN update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.12 1
# Install pip manually
RUN curl -sS https://bootstrap.pypa.io/get-pip.py | python3
# Set working directory
WORKDIR /workspace
# Verify installations
RUN python3 --version && pip --version
# Copying all application code
COPY . .
# Installing dependencies
RUN pip install -r requirements.txt