Skip to content

Commit

Permalink
fix(docker): improve dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
Zalk0 committed Mar 21, 2024
1 parent b614a6f commit c1c1232
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 11 deletions.
11 changes: 5 additions & 6 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
.github
.env
.env.example
.gitignore
LICENSE
README.md
*
!commands/
!utils/
!*.py
!requirements.txt
8 changes: 3 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
# Dockerfile for the python discord bot

FROM python:3.11-alpine
FROM python:3.12-alpine

WORKDIR /usr/src/chouettebot

COPY . .
RUN pip install --upgrade pip
RUN pip install -r requirements.txt
RUN pip --no-cache-dir install -r requirements.txt

EXPOSE 8080

CMD ["python3","main.py"]
CMD ["python3", "main.py"]
1 change: 1 addition & 0 deletions docker-compose.yaml.example
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ version: "3.8"

services:
bot:
build: .
image: chouettebot # Name of the image you built
container_name: "chouette-bot" # Name of the container you want to display
volumes:
Expand Down

0 comments on commit c1c1232

Please sign in to comment.