added a dockerfile and readme for docker build

This commit is contained in:
ArshErgon 2022-10-30 14:19:11 +04:30
parent b8812ea9b0
commit ab893e616d
3 changed files with 64 additions and 0 deletions

14
Dockerfile Normal file
View file

@ -0,0 +1,14 @@
FROM node:alpine
RUN mkdir node
COPY . ./node
WORKDIR /node/
RUN npm install
CMD npm start

View file

@ -5,6 +5,8 @@ A list of semi to fully remote-friendly companies in or around tech.
Contributions are very welcome! Please [review our contributing guidelines](https://github.com/remoteintech/remote-jobs/tree/main/.github/CONTRIBUTING.md) and then submit a new entry or update.
To run with Docker Please go [dockerREADME.md](https://github.com/remoteintech/remote-jobs/blob/main/dockerREADME.md)
## Companies
Name | Website | Region

48
dockerREADME.md Normal file
View file

@ -0,0 +1,48 @@
### For starting the Docker File
```
>remote-jobs $ sudo docker build remote -t remote-jobs
>remote-jobs $ sudo docker images ls
REPOSITORY TAG IMAGE ID CREATED SIZE
remote-job latest 971f9317008d 14 minutes ago 204MB
>remote-jobs $ sudo docker run -p 8080:8081 remote-job
> start
> bin/serve-site.js
Parsing content
Requesting URL "https://blog.remoteintech.company/"
Requesting URL "https://s1.wp.com/_static/??-eJyNktFSAyEMRX9IiGvXVh8cvwXYDKYGliHQDn..."
Requesting URL "https://s1.wp.com/_static/??-eJyVUO1qwzAMfKFpImOk7Mfos7iqmjixLWPLlL..."
Requesting URL "https://s2.wp.com/wp-content/mu-plugins/global-print/global-print.c..."
Requesting URL "https://s0.wp.com/wp-content/themes/h4/global.css?m=1420737423h&css..."
Requesting URL "https://s0.wp.com/?custom-css=1&csblog=9eXnX&cscache=6&csrev=6"
Requesting URL "https://s0.wp.com/_static/??-eJx9jNsKwjAMhl/ILky0sAvxWUobZrYegkkpe3..."
Copying favicon files
Generating search index
Writing main page
Writing company pages..........................................................................
Writing custom 404 page
Writing empty robots.txt
Site files are ready in "site/build/"
Starting up http-server, serving /node/site/build
http-server version: 14.0.0
http-server settings:
CORS: disabled
Cache: 3600 seconds
Connection Timeout: 120 seconds
Directory Listings: visible
AutoIndex: visible
Serve GZIP Files: false
Serve Brotli Files: false
Default File Extension: none
Available on:
http://127.0.0.1:8080
http://172.17.0.2:8080
Hit CTRL-C to stop the server
```