diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index b07d02b..836dbf9 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -27,5 +27,4 @@ jobs: with: push: true tags: gylfirst/chouettebot:latest,gylfirst/chouettebot:v0.0.${{ github.run_number }} - platforms: linux/amd64, linux/arm/v6, linux/arm/v7, linux/arm64/v8, linux/386, linux/ppc64le, linux/s390x - target: prod + platforms: linux/amd64, linux/arm/v6, linux/arm/v7, linux/arm64/v8, linux/ppc64le, linux/s390x diff --git a/Dockerfile b/Dockerfile index e234541..1110005 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,18 +1,11 @@ # Dockerfile for the python discord bot -ARG PYTHON_VERSION=3.12 -FROM python:${PYTHON_VERSION}-alpine as build -WORKDIR /usr/src/chouettebot -COPY . . - -RUN wget -O - https://sh.rustup.rs | sh -s -- -y && \ - PATH=$PATH:$HOME/.cargo/bin && \ - python3 -m venv venv && venv/bin/pip --no-cache-dir install -r requirements.txt - -FROM python:${PYTHON_VERSION}-alpine as prod +FROM python:3.12-alpine WORKDIR /usr/src/chouettebot -COPY --from=build /usr/src/chouettebot ./ + +COPY . . +RUN pip --no-cache-dir install -r requirements.txt EXPOSE 8080 -CMD ["venv/bin/python3", "main.py"] +CMD ["python3", "main.py"]