Skip to content
Open
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
19 changes: 19 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
FROM node:14-slim

# Set the working directory
WORKDIR /app

# Copy package.json and yarn.lock to the working directory
COPY package.json ./

# Install dependencies using Yarn
RUN yarn install

# Copy app to working directory
COPY . .

# Expose port 3000
EXPOSE 3000

# Start the app
CMD ["yarn", "start"]
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,22 @@ After cloning the files, you will have to run ```yarn``` followed by ```yarn sta
Change the data in the ```data.json``` file as well as add any images to ```public/img/```
You can also change styles by modifying the ```public/css``` files.

### Docker Alternative to start the app
<br>

You will need to have Docker installed. <br>
<a href="https://docs.docker.com/docker-for-windows/install/"> Docker for Windows: </a> <br>
<a href="https://docs.docker.com/docker-for-mac/install/"> Docker for macOS: </a> <br>
<a href="https://docs.docker.com/engine/install/"> Docker for Linux: </a>

#### Build the image
``` docker build -t react-landing-page-template . ```

#### Deploy the image
``` docker run -p 3000:3000 react-landing-page-template ```




## Like this project?
<a href="https://www.buymeacoffee.com/issaaf">Buy my a coffee ☕️</a>
Expand Down