Skip to content

Commit

Permalink
chore: move devcontainer command to Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
SmallhillCZ committed Jan 23, 2024
1 parent aeab7b6 commit 079aa9f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,6 @@ RUN apk add --no-cache alpine-sdk python3
RUN npm i -g @angular/cli @nestjs/cli

# set up git
RUN git config --global --add safe.directory /workspace && git config --global core.autocrlf true
RUN git config --global --add safe.directory /workspace && git config --global core.autocrlf true

CMD /bin/sh -c "while sleep 1000; do :; done"
4 changes: 2 additions & 2 deletions .devcontainer/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
name: bosan_web_development

services:
devcontainer:
container_name: ${COMPOSE_PROJECT_NAME:-bosan-web-dev}-devcontainer
build: "."
command: /bin/sh -c "while sleep 1000; do :; done"
user: node
volumes:
- ..:/workspace:cached

0 comments on commit 079aa9f

Please sign in to comment.