Skip to content

Commit

Permalink
docker added
Browse files Browse the repository at this point in the history
  • Loading branch information
Neliz3 committed May 14, 2024
1 parent 18d1456 commit 040dafe
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 5 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
* Docker


## Installation
```go
go get NEOs
```
## How to run:

## How to use it
1. Using docker container:
- Create your own .env file with keys listed in sample.env, then you can fill the values.
- Set the specified values of build_args in docker-compose file.
- Run docker-compose up to fetch and build images need for this project.
13 changes: 13 additions & 0 deletions build/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
FROM golang:latest

ARG API_KEY

COPY ./ ./


ENV HOME /

ENTRYPOINT ["{API_KEY}"]

WORKDIR /NEOs/
CMD ["go", "run", "./cmd/main.go"]

0 comments on commit 040dafe

Please sign in to comment.