27 lines
754 B
Docker
27 lines
754 B
Docker
# 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"]
|