docker-tootn/Dockerfile

28 lines
754 B
Text
Raw Normal View History

2025-01-09 12:33:41 -08:00
# Use Ubuntu as the base image
FROM ubuntu:latest
# Set environment variables to ensure non-interactive installations
ENV DEBIAN_FRONTEND=noninteractive
# Update package list and install required tools
RUN apt-get update && apt-get install -y \
python3 \
python3-venv \
python3-pip \
vim \
&& apt-get clean
# Create a working directory
WORKDIR /workspace
# Set up the virtual environment and install `toot`
RUN python3 -m venv /workspace/venv && \
/workspace/venv/bin/pip install --upgrade pip && \
/workspace/venv/bin/pip install toot
# Ensure the container uses the virtual environment by default
ENV PATH="/workspace/venv/bin:$PATH"
# Default command when the container starts
CMD ["bash"]