Skip to content

Commit

Permalink
Implemented functionality for launching applications using Docker
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielDrzazga committed Jan 14, 2024
1 parent 7b2199e commit 092d1cb
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
# dependencies
/node_modules
/.pnp
/.pnpm-store
.pnp.js
.yarn/install-state.gz

Expand Down
11 changes: 11 additions & 0 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
services:
app:
build: ./docker
working_dir: /app
environment:
WATCHPACK_POLLING: true
volumes:
- .:/app
ports:
- "3000:3000"
command: ["sh", "-c", "pnpm install && pnpm run dev"]
5 changes: 5 additions & 0 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
FROM node

RUN wget -qO- https://get.pnpm.io/install.sh | ENV="$HOME/.bashrc" SHELL="$(which bash)" bash - \
&& npm install -g npm \
&& npm install -g pnpm

0 comments on commit 092d1cb

Please sign in to comment.