Skip to content

Commit

Permalink
add utility script for running commands inside docker environment
Browse files Browse the repository at this point in the history
  • Loading branch information
SanderGi committed Dec 16, 2024
1 parent 0a001bd commit 9755e81
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/Dockerfile.dev
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ RUN apt-get update -qq && \
apt-get install --no-install-recommends -y build-essential node-gyp pkg-config python-is-python3

# Install node modules
COPY --link package-lock.json package.json ./
COPY --link package-lock.json ./
RUN npm ci

# Final stage for app image
Expand Down
5 changes: 5 additions & 0 deletions scripts/docker-run-dev-cmd.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/bash

docker build --tag 'scripts-webapp' -f ./scripts/Dockerfile.dev .

docker run -t -i -p 3000:3000 -v .:/app -v /app/node_modules/ --env-file .env.local 'scripts-webapp' $@

0 comments on commit 9755e81

Please sign in to comment.