Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

testing to use github actions #71

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
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
Prev Previous commit
Next Next commit
commit
  • Loading branch information
Fullstack-David committed Oct 31, 2024
commit 52894b4de6ea9b4c5cc221843cead1bc70bab76b
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -20,4 +20,5 @@ RUN npm install \
EXPOSE 3000

# Start the app using serve command
CMD [ "serve", "-s", "build" ]
CMD [ "serve", "-s", "build" ]
# CMD ["npm", "start"]
9 changes: 8 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -3,18 +3,25 @@
This is a repo for new users getting started with Docker.

You can try it out using the following command.

```
docker run -d -p 8088:80 --name welcome-to-docker docker/welcome-to-docker
```

And open `http://localhost:8088` in your browser.

# Building

Maintainers should see [MAINTAINERS.md](MAINTAINERS.md).

Build and run:

```
docker build -t welcome-to-docker .
docker build -t welcome-to-docker .
docker run -d -p 8088:3000 --name welcome-to-docker welcome-to-docker
```

Open `http://localhost:8088` in your browser.

docker build -t welcome-to-docker .
docker run -p 3001:3000 -v $(pwd):/app welcome-to-docker-test
40 changes: 1 addition & 39 deletions src/App.js
Original file line number Diff line number Diff line change
@@ -11,46 +11,8 @@ const App = () => {
<header className="App-header">
<h1 style={{ marginBottom: "0px" }}>Congratulations MR.David!!!</h1>
<p style={{ marginTop: "10px", marginBottom: "50px" }}>
You ran your first container.
You ran your first container SHOHOOO.
</p>
<div>
<a
target="_blank"
href={
"https://twitter.com/intent/tweet?text=" +
shareMessage +
"&url=" +
shareLink
}
class="fa-brands fa-x-twitter"
rel="noopener noreferrer"
>
{" "}
</a>
<a
target="_blank"
href={
"https://www.linkedin.com/sharing/share-offsite/?url=" + shareLink
}
class="fa-brands fa-linkedin"
rel="noopener noreferrer"
>
{" "}
</a>
<a
target="_blank"
href={
"https://reddit.com/submit?title=" +
shareMessage +
"&url=" +
shareLink
}
class="fa-brands fa-reddit"
rel="noopener noreferrer"
>
{" "}
</a>
</div>
</header>
</div>
);
Loading
Oops, something went wrong.