Add docker containers
This commit is contained in:
parent
97e04898be
commit
4fa3280484
2 changed files with 39 additions and 0 deletions
27
Dockerfile
Normal file
27
Dockerfile
Normal file
|
@ -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"]
|
12
docker-compose.yml
Normal file
12
docker-compose.yml
Normal file
|
@ -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
|
Loading…
Reference in a new issue