Skip to content

Commit e45489e

Browse files
committed
Added containerization support
1 parent 2a0d318 commit e45489e

File tree

2 files changed

+26
-0
lines changed

2 files changed

+26
-0
lines changed

Dockerfile

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# base image for python
2+
FROM python:3.10-alpine3.16
3+
4+
# # set working directory
5+
# WORKDIR /app
6+
7+
# set the required dependencies
8+
COPY requirements.txt requirements.txt
9+
COPY requirements-dev.txt requirements-dev.txt
10+
11+
# install dependencies
12+
RUN pip install -r requirements.txt
13+
RUN pip install -r requirements-dev.txt
14+
15+
# copy the content of the local src directory to the working directory
16+
COPY . .
17+
18+
# run the command to start the bot
19+
CMD [ "python3", "-m", "bot"]

docker-compose.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
version: "3"
2+
3+
services:
4+
gongo:
5+
container_name: gongo
6+
build: .
7+
image: python:3.10-alpine3.16

0 commit comments

Comments
 (0)