Skip to content

Commit

Permalink
Dockerizes application
Browse files Browse the repository at this point in the history
  • Loading branch information
RonLek committed Jun 8, 2021
1 parent 7de995a commit 62a1a4c
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 6 deletions.
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/

# Set the working directory
WORKDIR /rc4community

# install dependencies for client
RUN yarn

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

# Run the app when the container launches
CMD ["yarn", "prod"]
5 changes: 0 additions & 5 deletions next.config.js

This file was deleted.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
"scripts": {
"dev": "next dev",
"build": "next build",
"start": "next start"
"start": "next start",
"prod": "next build && next start -p 8090"
},
"dependencies": {
"@material-ui/core": "^4.11.4",
Expand Down

0 comments on commit 62a1a4c

Please sign in to comment.