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

Add Dockerfile #1

Open
wants to merge 13 commits into
base: master
Choose a base branch
from
Binary file added .Dockerfile.swp
Binary file not shown.
9 changes: 9 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
. git
_ gitignore
node_modules
npm - debug . log
Dockerfile *
docker - compose *
README . médico
LICENÇA
. vscode
3 changes: 3 additions & 0 deletions .env
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Site

NEXT_PUBLIC_SITE_URL=http://localhost:3000
11 changes: 11 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
FROM node:16
WORKDIR /usr/src/app

COPY . ./

# building the app
RUN npm i
RUN npm run build

# Running the app
CMD [ "npm", "start" ]
14 changes: 3 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<p>Forked by <a href="https://github.com/solrachix/podcastr">https://github.com/solrachix/podcastr</a></p>
<h1 align="center">
<a href="https://github.com/solrachix/podcastr">
<img alt="Move.it Logo" src="https://github.com/solrachix/podcastr/blob/master/public/icons/logo.svg?raw=true" width="50%" />
Expand Down Expand Up @@ -53,19 +54,10 @@ https://github.com/solrachix/podcastr

### Setup

- Install project dependencies;
- ```javascript
yarn install
// or
npm install
```
- Run project in development mode;

- ```javascript
yarn dev
// or
npm run dev
```
docker build -t yourusername/repository-name .
docker run -p80:3000 yourusername/example-node-app

- Be Happy! 😆

Expand Down