diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..8fc52e1 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,27 @@ +# 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"] diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..331a623 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,12 @@ +version: "3.8" + +services: + dev-environment: + build: + context: . + dockerfile: Dockerfile + volumes: + # Mount your `toot` configuration folder into the container + - "C:\\Users\\michaelacr\\AppData\\Roaming\\toot:/root/.config/toot" + working_dir: /workspace + tty: true