Skip to content

Commit

Permalink
Dockerizes application
Browse files Browse the repository at this point in the history
  • Loading branch information
RonLek committed Jun 6, 2021
1 parent aa2d347 commit 569481d
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
16 changes: 16 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
FROM node:14

# Copy the current directory contents into the container working directory
COPY . /rc4community/

# install dependencies for client
RUN npm install --prefix rc4community

# Set the working directory
WORKDIR /rc4community

# Make port 8090 available to the world outside this container
EXPOSE 8090

# Run the app when the container launches
CMD ["npm", "run", "start"]
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"web-vitals": "^1.0.1"
},
"scripts": {
"start": "react-scripts start",
"start": "PORT=8090 react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test",
"eject": "react-scripts eject"
Expand Down

0 comments on commit 569481d

Please sign in to comment.