Skip to content

Commit

Permalink
Merge pull request #7 from fossnsbm/main
Browse files Browse the repository at this point in the history
feat: Dockerfile and docker scripts
  • Loading branch information
Shenon69 authored Apr 28, 2024
2 parents 03e6425 + b1079f8 commit 15aae93
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 0 deletions.
1 change: 1 addition & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules
6 changes: 6 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
FROM node:lts-alpine3.19
WORKDIR /app
COPY . ./
RUN yarn
EXPOSE 3000
CMD yarn dev
13 changes: 13 additions & 0 deletions docker.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
echo "Welcome to the Docker Command Line Interface"
echo "-----------------------------------------"

if [ "$1" == "build" ]; then
docker build -f Dockerfile -t techie-sleuths-frontend .
elif [ "$1" == "run" ]; then
docker run -it -p 3000:3000 techie-sleuths-frontend
elif [ "$1" == "help" ]; then
echo "build: builds the docker image"
echo "run: runs the docker image"
else
echo "Please enter a valid command"
fi

0 comments on commit 15aae93

Please sign in to comment.