Skip to content

Commit

Permalink
Use Ubuntu base image #1
Browse files Browse the repository at this point in the history
  • Loading branch information
ajamous committed Sep 14, 2024
1 parent 510318e commit 956e7d6
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
# Use an official Python runtime as a parent image
FROM python:3.12-slim
# Use Ubuntu 22.04 LTS as the base image
FROM ubuntu:22.04

# Set the working directory in the container
WORKDIR /app

# Install required build tools (including a C++ compiler) and dependencies
# Install Python 3.12, build tools, and required dependencies
RUN apt-get update && apt-get install -y \
python3.12 \
python3.12-venv \
build-essential \
cmake \
g++ \
Expand All @@ -18,7 +20,7 @@ RUN apt-get update && apt-get install -y \
COPY . /app

# Create the ots virtual environment using Python's built-in venv tool
RUN python -m venv /app/ots
RUN python3.12 -m venv /app/ots

# Copy the requirements.txt file
COPY requirements.txt /app/requirements.txt
Expand Down

0 comments on commit 956e7d6

Please sign in to comment.