Skip to content

Commit

Permalink
Added containerization support
Browse files Browse the repository at this point in the history
  • Loading branch information
danielsp45 committed Mar 17, 2023
1 parent 2a0d318 commit 33e551d
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
16 changes: 16 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# base image for python
FROM python:3.10-alpine3.16

# set the required dependencies
COPY requirements.txt requirements.txt
COPY requirements-dev.txt requirements-dev.txt

# install dependencies
RUN pip install -r requirements.txt
RUN pip install -r requirements-dev.txt

# copy the content of the local src directory to the working directory
COPY . .

# run the command to start the bot
CMD [ "python3", "-m", "bot"]
7 changes: 7 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
version: "3"

services:
gongo:
container_name: gongo
build: .
image: python:3.10-alpine3.16

0 comments on commit 33e551d

Please sign in to comment.