Add docker environment

This commit is contained in:
Raymond Bernardo 2021-05-31 16:50:29 -04:00
parent 2760741e5b
commit a4b15af866
3 changed files with 35 additions and 1 deletions

16
Dockerfile Normal file
View File

@ -0,0 +1,16 @@
FROM python:3
WORKDIR /plane
COPY . .
# Add pipenv
RUN pip install pipenv
# Install dependencies
RUN pipenv install
# Added needed folder for plane-notify process
RUN mkdir /var/run/plane-notify
CMD pipenv run python __main__

View File

@ -90,9 +90,19 @@ screen -R <name screen whatever you want>
### Start Program ### Start Program
```bash ```bash
pipenv run __main__ pipenv run python __main__
``` ```
## Using with Docker
Install [docker from their website](https://docs.docker.com/get-docker/). Run the following command from the root of the project.
```
docker-compose up -d
```
After running this command, dut to the `-d` flag the container will be running in the background. To see the logs of the docker
### TODO ### TODO
- General Cleanup - General Cleanup

8
docker-compose.yml Normal file
View File

@ -0,0 +1,8 @@
version: "3.9"
services:
plane-notify:
command: sh -c "sleep 500"
build:
context: .
volumes:
- ./:/plane