mirror of
https://github.com/toptal/gitignore.io.git
synced 2021-05-12 18:32:24 +03:00
Add Docker support (#393)
* Implements Docker and Docker Compose support * Update the README file with usage instructions * Add the files Dockerfile, docker-compose.yml and .dockerignore * Change Docker image version from 0.1.0 to latest
This commit is contained in:
3
.dockerignore
Normal file
3
.dockerignore
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
Packages
|
||||||
|
.build
|
||||||
|
|
||||||
12
Dockerfile
Normal file
12
Dockerfile
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
FROM vapor/vapor:1.0.9-xenial
|
||||||
|
|
||||||
|
WORKDIR /app
|
||||||
|
|
||||||
|
COPY ./ ./
|
||||||
|
|
||||||
|
RUN vapor build
|
||||||
|
|
||||||
|
EXPOSE 8080
|
||||||
|
|
||||||
|
# CMD vapor run
|
||||||
|
|
||||||
10
README.md
10
README.md
@@ -203,6 +203,16 @@ $ vapor build
|
|||||||
$ vapor run
|
$ vapor run
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### Using Docker
|
||||||
|
|
||||||
|
It's also possible to run the app using [Docker](https://www.docker.com/) and [Docker Compose](https://docs.docker.com/compose/). It can be done by running the commands below.
|
||||||
|
|
||||||
|
```sh
|
||||||
|
$ git clone --recursive git@github.com:joeblau/gitignore.io.git
|
||||||
|
$ cd gitignore.io/
|
||||||
|
$ docker-compose up -d
|
||||||
|
```
|
||||||
|
|
||||||
## Companies
|
## Companies
|
||||||
|
|
||||||
Here are some companies that use gitignore.io:
|
Here are some companies that use gitignore.io:
|
||||||
|
|||||||
11
docker-compose.yml
Normal file
11
docker-compose.yml
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
version: "3.5"
|
||||||
|
|
||||||
|
services:
|
||||||
|
app:
|
||||||
|
image: gitignore-io:latest
|
||||||
|
build:
|
||||||
|
context: ./
|
||||||
|
dockerfile: Dockerfile
|
||||||
|
ports:
|
||||||
|
- "8080:8080"
|
||||||
|
command: vapor run
|
||||||
Reference in New Issue
Block a user