From 8d6cf2be252849df53ff3411def257ceccd13a8d Mon Sep 17 00:00:00 2001 From: Rob Ankeny Date: Sat, 25 May 2024 17:21:04 +0000 Subject: [PATCH] Creating docker file for easier development. --- .devcontainer/.env | 0 .devcontainer/Dockerfile | 5 +++++ .devcontainer/devcontainer.json | 10 ++++++++++ .devcontainer/docker-compose.yml | 11 +++++++++++ 4 files changed, 26 insertions(+) create mode 100644 .devcontainer/.env create mode 100644 .devcontainer/Dockerfile create mode 100644 .devcontainer/devcontainer.json create mode 100644 .devcontainer/docker-compose.yml diff --git a/.devcontainer/.env b/.devcontainer/.env new file mode 100644 index 0000000..e69de29 diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile new file mode 100644 index 0000000..342775e --- /dev/null +++ b/.devcontainer/Dockerfile @@ -0,0 +1,5 @@ +FROM mcr.microsoft.com/devcontainers/dotnet:8.0 + +# RUN apt-get update && export DEBIAN_FRONTEND=noninteractive + +WORKDIR /workspaces/ \ No newline at end of file diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json new file mode 100644 index 0000000..b320007 --- /dev/null +++ b/.devcontainer/devcontainer.json @@ -0,0 +1,10 @@ +{ + "name": "Youtube Metadata", + "dockerComposeFile": "docker-compose.yml", + "service": "app", + "workspaceFolder": "/workspaces/", + "features": { + "ghcr.io/guiyomh/features/vim:0": {} + }, + "postStartCommand": "git config --global --add safe.directory ${containerWorkspaceFolder}" +} \ No newline at end of file diff --git a/.devcontainer/docker-compose.yml b/.devcontainer/docker-compose.yml new file mode 100644 index 0000000..9ab9b94 --- /dev/null +++ b/.devcontainer/docker-compose.yml @@ -0,0 +1,11 @@ +version: '3.8' +services: + app: + build: + context: . + dockerfile: dockerfile + env_file: + - .env + command: sleep infinity + volumes: + - ../:/workspaces:cached \ No newline at end of file