Skip to content

Commit

Permalink
Creating docker file for easier development.
Browse files Browse the repository at this point in the history
  • Loading branch information
ankenyr committed May 25, 2024
1 parent 1907b3c commit 8d6cf2b
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 0 deletions.
Empty file added .devcontainer/.env
Empty file.
5 changes: 5 additions & 0 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
FROM mcr.microsoft.com/devcontainers/dotnet:8.0

# RUN apt-get update && export DEBIAN_FRONTEND=noninteractive

WORKDIR /workspaces/
10 changes: 10 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -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}"
}
11 changes: 11 additions & 0 deletions .devcontainer/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
version: '3.8'
services:
app:
build:
context: .
dockerfile: dockerfile
env_file:
- .env
command: sleep infinity
volumes:
- ../:/workspaces:cached

0 comments on commit 8d6cf2b

Please sign in to comment.