Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
FROM node:8.11.3

# install dependencies
WORKDIR /TeamBoosted/src/app
COPY package.json package-lock.json* ./
RUN npm install

# copy app source image ***AFTER*** npm install so that
# application code changes don't bust the docker cache of npm install step
COPY . .

# set application PORT and expose docker PORT, 80 is what ELASTIC BEANSTALK expects
ENV PORT 8081
EXPOSE 8081

CMD ["npm", "start"]
7 changes: 7 additions & 0 deletions rebuild.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
if [ "$1" == "nocontainer" ]; then
echo "Starting new container.."
else
echo "Restarting container.."
docker stop teamboosted-database && docker rm -f -v teamboosted-database
fi
docker build -t teamboosted-database . && docker run --name teamboosted-database -p 8081:8081 --network br0 --env-file .env -d teamboosted-database