Skip to content

Commit

Permalink
added docker support #3
Browse files Browse the repository at this point in the history
  • Loading branch information
David Tahir committed Dec 15, 2021
1 parent 53b9345 commit 20c63b3
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.git
.vscode
build
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Coding
.vscode

# Binaries for programs and plugins
*.exe
*.exe~
Expand Down
13 changes: 13 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
FROM golang:1.15-alpine

LABEL maintainer="Kadrim <[email protected]>"

WORKDIR /proxy4plex
ADD . .

RUN go build

EXPOSE 80
EXPOSE 3000

CMD [ "./proxy4plex" ]
17 changes: 17 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,23 @@ To compile a binary for your currently running system, simply run this command:

To compile for all possible architectures you can run the command `go-build-all.sh` from a bash terminal (works also on windows in a git-bash terminal). The output binaries will be put into the directory `build/`

## Docker

You can easily run this proxy as a Docker container:

* Pull docker image and run:
```
docker pull kadrim/proxy4plex
docker run -it -p 80:80 -p 3000:3000 --rm kadrim/proxy4plex
```
or

* Build and run container from source:
```
docker build -t proxy4plex .
docker run -it -p 80:80 -p 3000:3000 --rm proxy4plex
```

## TODOs

- detect OS and allow User to install the proxy as a boot-service
Expand Down

0 comments on commit 20c63b3

Please sign in to comment.