Skip to content

Commit

Permalink
Revert try to add rust to build python packages and remove 386
Browse files Browse the repository at this point in the history
This reverts commit ca297d0.
  • Loading branch information
Zalk0 committed Mar 29, 2024
1 parent ca297d0 commit 5509a99
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 14 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
17 changes: 5 additions & 12 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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"]

0 comments on commit 5509a99

Please sign in to comment.